chiark / gitweb /
core: allow Type=oneshot services to have ExecReload
authorMantas Mikulėnas <grawity@gmail.com>
Wed, 10 Oct 2012 17:18:42 +0000 (20:18 +0300)
committerLennart Poettering <lennart@poettering.net>
Mon, 15 Oct 2012 23:36:18 +0000 (01:36 +0200)
commit2abba39d759bacebd7461f7370bb108f48dcce92
tree4011d84a2b6136d4d28b905d6830ca8ad4c0505b
parent9388e99e208a6487b26dcbda86005ee9eba8d93d
core: allow Type=oneshot services to have ExecReload

Use cases:

 * iptables.service – atomically reload rules without having to flush
   them beforehand (which may leave the system insecure if reload fails)

 * rpc-nfsd.service – reexport filesystems after /etc/exports update
   without completely stopping and restarting nfsd

(In both cases, the actual service is provided by a kernel module and
does not have any associated user-space processes, thus Type=oneshot.)
src/core/service.c