[systemd-devel] ExecStop required in service file?
Lennart Poettering
lennart at poettering.net
Tue Dec 13 02:56:49 PST 2011
On Mon, 14.11.11 10:51, Michael D. Berger (m.d.berger at ieee.org) wrote:
> On my F16_64, mySrvDaemon is a tcp/ip server involving posix
> threads, written in C++. mySrvDaemon.service:
>
> [Unit]
> Description=Server Service
> After=syslog.target network.target
>
> [Service]
> PIDFile=/var/lock/subsys/mySrvDaemon
> Type=simple
> ControlGroup=cpu:/
> ExecStart=/usr/sbin/mySrvDaemon --daemon
> ExecStop=/bin/kill -TERM $MAINPID
Note that systemd sends TERM to all processes of a service anyway. An
ExecStop= line like this is hence fully redundant.
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list