Comment 4 for bug 1532553

Revision history for this message
Thomas M Steenholdt (tmus) wrote :

Hmmm I can't seem to find it documented anywhere, but last time I needed this to work was in the good old sysvinit days and it may have even been on a different distro. Sorry for not brushing thoroughly up on this, prior to filing this bug.

I have checked with CentOS 7 and it has the halt.local placed in /usr/sbin/halt.local as well

In any case, this is part of the rc-local type magic that systemd performs and with rc.local in /etc/rc.local, one could argue, that it makes sense for these scripts to be located together.

But more importantly, user-maintained stuff in /usr/sbin/ is just bad practice and we should not encourage people to do that.

/T