summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-04-16 16:33:26 -0400
committerBrian Evans <grknight@gentoo.org>2018-04-16 16:33:26 -0400
commit54dea0df66ba2fd29542d6fb59aff5afaf034eb3 (patch)
treee110559094a40b7150f92af4c356ddd37b3a2ca7 /sys-apps/init-system-helpers/files
parentgames-arcade/grande-KXL: Drop old (diff)
downloadgentoo-54dea0df66ba2fd29542d6fb59aff5afaf034eb3.tar.gz
gentoo-54dea0df66ba2fd29542d6fb59aff5afaf034eb3.tar.bz2
gentoo-54dea0df66ba2fd29542d6fb59aff5afaf034eb3.zip
sys-apps/init-system-helpers: Revbump to remove OpenRC symlink mgmt
This function is just insane letting a script try to manage started instead of letting the init system handle it Closes: https://bugs.gentoo.org/641836 Closes: https://bugs.gentoo.org/649014 Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'sys-apps/init-system-helpers/files')
-rw-r--r--sys-apps/init-system-helpers/files/revert-openrc-management.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/sys-apps/init-system-helpers/files/revert-openrc-management.patch b/sys-apps/init-system-helpers/files/revert-openrc-management.patch
new file mode 100644
index 000000000000..49b4916fab31
--- /dev/null
+++ b/sys-apps/init-system-helpers/files/revert-openrc-management.patch
@@ -0,0 +1,32 @@
+--- 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