systemd / active (exited)

Ralf Mardorf silver.bullet at zoho.com
Thu Aug 29 16:57:19 UTC 2019


On Thu, 29 Aug 2019 11:58:07 -0000 (UTC), Helmut Schneider wrote:
>Hi,
>
>what do I have to do that systemd shows correctly if a daemon is
>running or not?
>
>helmut at h2786452:~$ sudo /etc/init.d/clamav-daemon-chroot status; echo
>$? _ clamav-daemon-chroot.service - LSB: ClamAV daemon
>   Loaded: loaded (/etc/init.d/clamav-daemon-chroot; bad; vendor
>preset: enabled)
>   Active: active (exited) since Thu 2019-08-29 12:33:49 CEST; 1h 23min
>ago
>     Docs: man:systemd-sysv-generator(8)
>
>Aug 29 12:32:58 h2786452 clamav-daemon-chroot[8654]:  * Starting ClamAV
>daemon...
>Aug 29 12:33:49 h2786452 clamav-daemon-chroot[8654]:  * ClamAV daemon
>is now up and ...!
>Hint: Some lines were ellipsized, use -l to show in full.
>0
>helmut at h2786452:~$ pgrep clamd
>helmut at h2786452:~$
>
>Thank you!

Start the service by a systemd unit and then check with systemctl.

"systemd-sysv-generator is a generator that creates wrapper .service
units for SysV init scripts" -
https://www.freedesktop.org/software/systemd/man/systemd-sysv-generator.html

This likely means that the unit does start the init script, not calmd.
The init script does start calmd. IOW I suspect systemd only returns
the status of the init script, not of calmd.





More information about the ubuntu-users mailing list