[systemd-devel] [PATCH] core: allow Type=oneshot services to have ExecReload

Lennart Poettering lennart at poettering.net
Mon Oct 15 16:39:10 PDT 2012


On Wed, 10.10.12 20:18, Mantas Mikulėnas (grawity at gmail.com) wrote:

Heya,

> 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.)

Commited. I hope you tested that this actually works properly?

Did you check whether we documented the old behaviour somewhere in the
man pages? Might be something to remove now, too. (From a quick glance I
couldn't find anything mentioned, did you look too?)

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list