milter-greylist fails to restart after issuing 'systemctl restart milter-greylist.service'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
milter-greylist (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
It seems that when issuing 'systemctl restart milter-
Jan 21 06:13:48 Ubuntu milter-
Jan 21 06:13:48 Ubuntu milter-
Jan 21 06:13:48 Ubuntu milter-
Jan 21 06:13:48 Ubuntu milter-
Jan 21 06:13:48 Ubuntu milter-
Jan 21 06:13:48 Ubuntu milter-
This is probably caused by the incorrect unit file generated by systemd:
$ systemctl cat milter-
# /run/systemd/
# Automatically generated by systemd-
[Unit]
Documentation=
SourcePath=
Description=LSB: Script to start/stop the greylist-milter
Before=
Before=
Before=
Before=
After=nss-
After=remote-
After=sendmail.
[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
SuccessExitStatus=5 6
ExecStart=
ExecStop=
ExecReload=
When restarting mitler-greylist, systemd executes '/etc/init.
An easy fix is to add --retry to '/etc/init.