Package: sympa
Version: 6.1.23~dfsg-2
After logrotate "reloads" sympa, systemd no longer considers the service
as running.
/etc/logrotate.d/sympa contains:
postrotate
invoke-rc.d --quiet sympa reload > /dev/null
invoke-rc.d --quiet rsyslog rotate > /dev/null || true
endscript
When `invoke-rc.d sympa reload` is executed, it apperas that
`invoke-rc.d` realizes that the systemd service configuration for Sympa
(`/lib/systemd/system/sympa.service`) does not contain a reload action.
It therefore ends up reloading Sympa through `/etc/init.d/sympa`
instead. The result is that systemd becomes confused about the current
status of Sympa:
$ sudo invoke-rc.d sympa status
● sympa.service - SYMPA mailing list manager
Loaded: loaded (/lib/systemd/system/sympa.service; enabled)
Active: active (running) since Wed 2015-11-04 14:39:51 CET; 4min 34s ago
Process: 27012 ExecStart=/usr/lib/sympa/bin/sympa.pl (code=exited,
status=0/SUCCESS)
Process: 27008 ExecStartPre=/bin/chown -R sympa:sympa /run/sympa
(code=exited, status=0/SUCCESS)
Process: 27002 ExecStartPre=/bin/mkdir -p /run/sympa (code=exited,
status=0/SUCCESS)
Main PID: 27048 (sympa.pl)
CGroup: /system.slice/sympa.service
└─27048 /usr/bin/perl /usr/lib/sympa/bin/sympa.pl
$ sudo invoke-rc.d sympa reload
[ ok ] Stoping Sympa mailing list manager: archived bounced bulk
task_manager sympa.
[ ok ] Starting Sympa mailing list manager: sympa task_manager bulk
bounced archived.
$ sudo invoke-rc.d sympa status
● sympa.service - SYMPA mailing list manager
Loaded: loaded (/lib/systemd/system/sympa.service; enabled)
Active: inactive (dead) since Wed 2015-11-04 14:45:07 CET; 14s ago
Process: 27012 ExecStart=/usr/lib/sympa/bin/sympa.pl (code=exited,
status=0/SUCCESS)
Process: 27008 ExecStartPre=/bin/chown -R sympa:sympa /run/sympa
(code=exited, status=0/SUCCESS)
Process: 27002 ExecStartPre=/bin/mkdir -p /run/sympa (code=exited,
status=0/SUCCESS)
Main PID: 27048 (code=exited, status=0/SUCCESS)
[...]
invoke-rc.d: initscript sympa, action "status" failed.
At this point Sympa is running, but it is not running under the control
of systemd. If for example Puppet later checks the status of Sympa, it
will be told that Sympa is not running, and attempt to start it.
Best regards,
Olav Morken
UNINETT