systemd / active (exited)
Helmut Schneider
jumper99 at gmx.de
Mon Sep 2 11:19:04 UTC 2019
Tom H wrote:
> On Sat, Aug 31, 2019 at 12:35 PM Helmut Schneider <jumper99 at gmx.de>
> wrote:
> > Tom H wrote:
> > >
> >> Does running this manually
> > >
> >> chroot --userspec amavis:amavis /var/amavis /usr/sbin/clamd
> >> --config-file /etc/clamav/clamd.conf
> > >
> >> work?
> >
> > Yes, the whole init script runs fine but if the daemon dies for
> > some reason systemd still happily reports "active". I use puppet
> > and it does then not see a reason to restart clamd.
> >
> > I have to run
> >
> > sudo /etc/init.d/clamav-daemon-chroot stop
> >
> > in that case.
>
> It's probably the chroot via a sysvrc script that's confusing systemd.
>
> You can check what systemd thinks that it's supervising with
> "systemctl show -p MainPID clamav-daemon-chroot.service".
helmut at h2786452:~$ sudo systemctl show -p MainPID
clamav-daemon-chroot.service
MainPID=0
helmut at h2786452:~$ pgrep clamd
3353
helmut at h2786452:~$
Any way to control MainPID?
More information about the ubuntu-users
mailing list