summaryrefslogtreecommitdiff
path: root/sys-apps/init-system-helpers/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-04-19 14:14:48 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-04-19 14:14:48 +0100
commit5cfef3c94cd7e82136c69a0322f5ba21f7e64632 (patch)
tree8f255dfacbacb657e3ac3654d01c1e11e651c066 /sys-apps/init-system-helpers/files
parent8aebb228036d5e2863b7eaa6e319ab41c1669269 (diff)
gentoo resync : 19.04.2018
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