[systemd-devel] [PATCH] Avoid reloading services when shutting down

Reindl Harald h.reindl at thelounge.net
Wed Feb 4 13:25:24 PST 2015



Am 04.02.2015 um 21:57 schrieb Lennart Poettering:
> OK, let's try this again, with an example:
>
> a) you have one service mydaemon.service
>
> b) you have a preparation service called
>     mydaemon-convert-config.service that takes config from somewhere,
>     converts it into a suitable format for mydaemon.service's binary
>
> Now, you change that config that is located somewhere, issue a restart
> request for m-c-c.s, issue a reload request for mydaemon.service.
>
> Now, something like this should always have the result that your
> config change is applied to mydaemon.service. Regardless if
> mydaemon.service's start was queued, is already started or is
> currently being started. You are suggesting that the reload can
> suppressed when a start is already enqueued

which is true

the config change *after* issue restart should not affect the already 
pending (for whatever reason) restart because this is *unpredictable* 
bahvior - if i expect that config change to get effective i would issue 
"systemctl reload" *before* the restart command

if you say that is expected behavior than all the warnings about "you 
need to enter systemctl deamon-reload because the unit file changed" are 
pointless and you could just reload automagically all the time

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150204/a6f3fbf4/attachment.sig>


More information about the systemd-devel mailing list