Systemd unit file: Can/Should ExecStart and ExecStop run a script?

"Jóhann B. Guðmundsson" johannbg at gmail.com
Thu Oct 20 08:37:35 UTC 2011


On 10/19/2011 08:29 PM, Lennart Poettering wrote:
> The After=syslog.target is unnecessary these days and should be removed
> to keep things simple.

If you expect upstream to ship unit files then you must realize  that 
upstream needs to ship a unit file that works across distribution on 
what ever systemd release downstream is using hence removing options 
that are no longer necessary X release of systemd is not an option.

I'm pretty sure if I had removed those option and posted one that 
reflect the current state in systemd that unit file would have not 
worked on F15 and that's just in our own back yard but feel free to 
correct me if I'm wrong or back port the necessary changes to support 
this from upstream ( that is if it wont break anything in the process ) 
and continue to advocate things to be remove for the sake of simplicity 
and adjust their unit files to use /run instead of using /var/run like 
many of them do today ( yes in not to distant future all unit files 
using /var/run/$foo need to fixed to use /run/$bar instead so heads up 
people ) .

There is one thing to migrate all the legacy sysv init scripts to native 
systemd units and it's a whole different ball park if you then expect 
everybody to rewrite their unit files each time you make a new release 
since those unit files might not be backward/forward compatible to 
whatever changes you decide to make and release at that time.

JBG


More information about the devel mailing list