Public bug reported:

Attempting to start the cachefiles service when /etc/default/cachefilesd
has #RUN=yes commented out:

systemctl start cachefilesd.service

Leaves service "active" even though the daemon fails:

systemctl status cachefilesd.service
● cachefilesd.service - LSB: CacheFiles daemon
   Loaded: loaded (/etc/init.d/cachefilesd; generated)
   Active: active (exited) since Tue 2021-02-23 13:24:57 EST; 1min 15s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 26346 ExecStop=/etc/init.d/cachefilesd stop (code=exited, 
status=0/SUCCESS)
  Process: 26360 ExecStart=/etc/init.d/cachefilesd start (code=exited, 
status=0/SUCCESS)

Feb 23 13:24:57 gerarddaily systemd[1]: Starting LSB: CacheFiles daemon...
Feb 23 13:24:57 gerarddaily cachefilesd[26360]:  * cachefilesd disabled, please 
set RUN=yes in /etc/default/cachefilesd
Feb 23 13:24:57 gerarddaily systemd[1]: Started LSB: CacheFiles daemon.
Feb 23 13:25:53 gerarddaily cachefilesd[26273]: Daemon Terminated

This leads systemd to ignore future "start" commands even after then
problem is fixed. Systemd services typically report a failure, not
"Success" when their daemon fails to start.

Work around: manually stopping and then starting service, or systemctl
restart cachefilesd restarts the service.

 lsb_release -rd
Description:    Ubuntu 18.04.5 LTS
Release:        18.04


apt-cache policy cachefilesd
cachefilesd:
  Installed: 0.10.10-0.1ubuntu0.18.04.1
  Candidate: 0.10.10-0.1ubuntu0.18.04.1
  Version table:
 *** 0.10.10-0.1ubuntu0.18.04.1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 
Packages
        100 /var/lib/dpkg/status
     0.10.10-0.1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages

** Affects: cachefilesd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1916641

Title:
  system service remains active if daemon fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cachefilesd/+bug/1916641/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to