[rrdtool-maint] Bug#971073: rrdcached: Cannot be enabled using systemctl enable. Missing [Install] section in rrdcached.service.

Tan Shao Yi tansy at tansy.org
Sun Sep 27 11:38:13 BST 2020


Package: rrdcached
Version: 1.7.1-2
Severity: normal

Dear Maintainer,

Running "systemctl enable rrdcached" produces the following error:

# systemctl enable rrdcached
Synchronizing state of rrdcached.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable rrdcached
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.
 
Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
  .wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
  a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
  D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
  instance name specified.

It looks like /etc/systemd/system/rrdcached.service is missing the [Install] section. Adding

[Install]
WantedBy=multi-user.target

allows the "systemctl enable" to continue. Can this [Install] section be added by default please?

-- System Information:
Debian Release: 10.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-11-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=C.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)
LSM: AppArmor: enabled

Versions of packages rrdcached depends on:
ii  libc6                2.28-10
ii  libcairo2            1.16.0-4
ii  libdbi1              0.9.0-5
ii  libglib2.0-0         2.58.3-2+deb10u2
ii  libpango-1.0-0       1.42.4-8~deb10u1
ii  libpangocairo-1.0-0  1.42.4-8~deb10u1
ii  libpng16-16          1.6.36-6
ii  librrd8              1.7.1-2
ii  libxml2              2.9.4+dfsg1-7+b3
ii  lsb-base             10.2019051400

rrdcached recommends no packages.

rrdcached suggests no packages.

-- Configuration Files:
/etc/default/rrdcached changed [not included]

-- no debconf information


More information about the pkg-rrdtool-maint mailing list