[systemd-devel] extra SIGTERM
Michael D. Berger
m.d.berger at ieee.org
Thu Dec 29 16:14:20 PST 2011
myDaemon.service:
[Unit]
Description=myDaemon
After=syslog.target network.target
[Service]
PIDFile=/var/lock/subsys/myDaemon
Type=simple
ControlGroup=cpu:/
ExecStart=/usr/sbin/myDaemon --daemon
#ExecStop=/bin/kill -s SIGTERM $MAINPID
[Install]
WantedBy=multi-user.target
Using the service as shown, when I stop myDaemon,
it gets one SIGTERM .
However, if I uncomment the ExecStop line, it gets
two SIGTERMs in rapid succession.
Looks like a bug to me. What do you think?
Mike.
--
Michael D. Berger
m.d.berger at ieee.org
http://www.rosemike.net/
More information about the systemd-devel
mailing list