Package: systemd
Version: 241-3
Severity: important

Hi

it seems that the documentation of systemd is incorrect, or incomplete,
as it states that
        suffix. In the unit file itself, the instance parameter may be referred 
to using "%i" and other
        specifiers, see below.
        (man page of systemd.unit)
and down there %h is listed as home directory of the user.

We use a systemd unit file that has onedrive@.service
        ExecStart=/usr/bin/onedrive --monitor 
--confdir=/home/%i/.config/onedrive
which works as expected. But the moment I change it to
        ExecStart=/usr/bin/onedrive --monitor --confdir=%h/.config/onedrive
it breaks because %h is not expanded.

Best

Norbert


-- Package-specific info:

-- System Information:
Debian Release: 10.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.0.9 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd depends on:
ii  adduser          3.118
ii  libacl1          2.2.53-4
ii  libapparmor1     2.13.2-10
ii  libaudit1        1:2.8.4-2
ii  libblkid1        2.33.1-0.1
ii  libc6            2.28-8
ii  libcap2          1:2.25-2
ii  libcryptsetup12  2:2.1.0-2
ii  libgcrypt20      1.8.4-5
ii  libgnutls30      3.6.7-2
ii  libgpg-error0    1.35-1
ii  libidn11         1.33-2.2
ii  libip4tc0        1.8.2-4
ii  libkmod2         26-1
ii  liblz4-1         1.8.3-1
ii  liblzma5         5.2.4-1
ii  libmount1        2.33.1-0.1
ii  libpam0g         1.3.1-5
ii  libseccomp2      2.3.3-4
ii  libselinux1      2.8-1+b1
ii  libsystemd0      241-3
ii  mount            2.33.1-0.1
ii  util-linux       2.33.1-0.1

Versions of packages systemd recommends:
ii  dbus            1.12.12-1
ii  libpam-systemd  241-3

Versions of packages systemd suggests:
ii  policykit-1        0.105-25
ii  systemd-container  241-3

Versions of packages systemd is related to:
pn  dracut           <none>
ii  initramfs-tools  0.133
ii  udev             241-3

-- no debconf information

Reply via email to