systemd / active (exited)

Tom H tomh0665 at gmail.com
Fri Aug 30 08:24:16 UTC 2019


On Thu, Aug 29, 2019 at 2:01 PM Helmut Schneider <jumper99 at gmx.de> wrote:
>
> 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:~$

"sudo service clamav-daemon-chroot status" is better than "sudo
/etc/init.d/clamav-daemon-chroot status".

Since Ubuntu's using systemd, both are handing off to and using
"systemctl status clamav-daemon-chroot".

The "Loaded" line has "bad". That means that systemd couldn't parse
something in the script.




More information about the ubuntu-users mailing list