New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop support for /usr/sbin/halt.local #12571
Conversation
/usr/sbin/halt.local is a Fedora/Red Hat anachronism from pre-systemd times.
hmm, i am pretty sure that if we drop that we also should drop rc.local support... are you sure ups software got updated to not use this anymore? i doubt so? |
/etc/rc.local seems to be something used/supported on basically every distro and in more wide spread use still, which is why I think there is still some value keeping it. |
Regarding UPS software: If it really required support for /usr/sbin/halt.local, then that software would be broken on any non-Fedora distro.
|
Ref: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1532553 https://forums.opensuse.org/showthread.php/500034-12-3-halt-local-does-not-run-at-shutdown Edit: opensuse indeed uses |
@keszybz thanks for the pointer regarding (open)SUSE. Let's wait for feedback from their side. An alternative I had considered was changing |
@keszybz what I don't quite understand: If openSUSE installs halt.local as |
I think this allows them not to have to enable it (in the sysvinit sense), but it works "automagically". But yeah, it seems rather confusing to place it there. |
As one of the Mageia systemd maintainers, I'd actually rather see all of this killed at once ( |
Dropping Within Debian/Ubuntu, we never supported |
@mbiebl Couldn't the rc-local generator just be split out into its own project under the systemd org, especially now that system generators are now a thing in systemd? |
Query in Fedora: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/LI77ZFZIXORRGKFG2OBJXTUQBFFLMZIF/ @fbuihuu comments from opensuse side?
It's not worth the trouble. If we drop it, let's just drop it. |
Then we wouldn't gain anything. It would just mean more work for us to package a separate binary. |
I've just now sent an equivalent email to the Mageia dev mailing list: https://ml.mageia.org/l/arc/dev/2019-05/msg00578.html |
Hm, alternatively we might just ship such an |
The responses so far are what I expected: |
Well those legacy scripts have been supported for years so the only feedback I can provide is that we must at least observe a period of deprecation. If upstream decides to drop the support upstream now then downstreams will have to provide backward compatibilities in theory. So to avoid duplicating this work, deprecating those scripts (if we decide to do so) upstream and warn loudly users who use these scripts (especially halt.local) would be simpler IMHO. BTW SUSE started deprecating them 3 years ago, see openSUSE/aaa_base@d1e4cb0. But I guess no actual users have noticed. |
It seems rc.local has users, but nobody cares about halt.local. In addition, rc.local is something of a standard, but halt.local is supported by only a subset of distros and slightly different in each one. It seems reasonable to merge this patch as-is, i.e. drop halt.local but keep rc.local for now. We should also work on some documentation how to provide a quick service using |
In the openSUSE factory ML, we got a note for this, accompanied with a hint to look into man systemd-shutdown(8) for a replacement. Guess what, I did, and now I know about the systemd shutdown logic, but still missing an obvious way to replace my /etc/init.d/halt.local script easily. Mind briefly describing a replacement procedure here? Thanks in advance. |
From that man page:
So I think all you'd need to do is move your /etc/init.d/halt.local script to /usr/lib/systemd/system-shutdown/ and ensure it's argument parsing works according to the above description (if needed) and you should be fine. |
Sorry for my blindness. One should never deal with such things while nursing a cold. |
/usr/sbin/halt.local is a Fedora/Red Hat anachronism from pre-systemd
times.