Files
gentoo/sys-apps/init-system-helpers/files/revert-openrc-management.patch
Sam James cd989c2a53 sys-apps/init-system-helpers: add bug links to patch
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
2021-01-27 01:49:13 +00:00

36 lines
929 B
Diff

Tries to manage started service instead of allowing OpenRC to do it.
https://bugs.gentoo.org/641836
https://bugs.gentoo.org/649014
--- a/script/service
+++ b/script/service
@@ -159,23 +160,6 @@ run_via_sysvinit() {
fi
}
-update_openrc_started_symlinks() {
- # maintain the symlinks of /run/openrc/started so that
- # rc-status works with the service command as well
- if [ -d /run/openrc/started ] ; then
- case "${ACTION}" in
- start)
- if [ ! -h /run/openrc/started/$SERVICE ] ; then
- ln -s $SERVICEDIR/$SERVICE /run/openrc/started/$SERVICE || true
- fi
- ;;
- stop)
- rm /run/openrc/started/$SERVICE || true
- ;;
- esac
- fi
-}
-
# When this machine is running systemd, standard service calls are turned into
# systemctl calls.
if [ -n "$is_systemd" ]
@@ -210,5 +228,4 @@ then
esac
fi
-update_openrc_started_symlinks
run_via_sysvinit