systemd / active (exited)
Helmut Schneider
jumper99 at gmx.de
Sat Aug 31 10:32:41 UTC 2019
Tom H wrote:
> On Fri, Aug 30, 2019 at 10:31 AM Helmut Schneider <jumper99 at gmx.de>
> wrote:
> >
> > systemd is a book with 7 seals for me, who ever had the idea
> > completely lost me. It starts with I have not idea how to use
> > variables and start clamd chrooted:
> >
> >
> #! /bin/sh
> > ...
> > start)
> > ...
> > chroot --userspec $(id -u ${AMAVISD_USER}):$(id -g
> > ${AMAVISD_GROUP}) ${AMAVISD_ROOT} ${DAEMON} --config-file
> > ${CLAMAVCONF}
> > ...
>
> 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.
More information about the ubuntu-users
mailing list