On Sat, Feb 15, 2014 at 08:12:45PM +0100, Michael Biebl wrote:
> Hi Colin,
> 
> thanks for shipping a systemd service file for binfmt-support.

No problem.

> I noticed that the SysV init script runs
> update-binfmts --disable on stop
> 
> The systemd service doesn't though.
> Is this difference in behaviour deliberate or should we
> also run disable on stop in the service file?
> 
> This could be done via
> 
> ExecStop=/usr/sbin/update-binfmts --disable

It's an interesting question.  If you look closely at the sysvinit
script, you'll see that it does define a stop action, but there's no
Default-Stop; that means you can stop it manually if you want to, but it
doesn't slow down shutdown by doing unnecessary work.

Is there a way to achieve a similar effect with systemd?  I haven't been
able to find one by looking through the manual pages.

(The stop action is mostly a nicety, so if this isn't achieveable, I
think it would be better to omit ExecStop rather than slowing down
shutdown.)

Thanks,

-- 
Colin Watson                                       [[email protected]]


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to