You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/init-system-helpers/files/revert-openrc-management.patch

33 lines
798 B

--- 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