Add support for alpine linux

Both Alpine Linux and Gentoo use OpenRC so we share its logic

Signed-off-by: Carlo Landmeter <clandmeter@gmail.com>
Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4386
This commit is contained in:
Carlo Landmeter
2016-03-01 16:36:28 +01:00
committed by Brian Behlendorf
parent 513168abd2
commit c53fb0113c
6 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ $(init_SCRIPTS) $(initconf_SCRIPTS) $(initcommon_SCRIPTS): $(EXTRA_DIST)
else \
NFS_SRV=nfs; \
fi; \
if [ -e /etc/gentoo-release ]; then \
if [ -e /sbin/openrc-run ]; then \
SHELL=/sbin/runscript; \
else \
SHELL=/bin/sh; \
+1 -1
View File
@@ -308,7 +308,7 @@ do_start()
# ----------------------------------------------------
if [ ! -e /etc/gentoo-release ]
if [ ! -e /sbin/openrc-run ]
then
case "$1" in
start)
+1 -1
View File
@@ -199,7 +199,7 @@ do_stop()
# ----------------------------------------------------
if [ ! -e /etc/gentoo-release ]
if [ ! -e /sbin/openrc-run ]
then
case "$1" in
start)
+1 -1
View File
@@ -58,7 +58,7 @@ do_stop()
# ----------------------------------------------------
if [ ! -e /etc/gentoo-release ]; then
if [ ! -e /sbin/openrc-run ]; then
case "$1" in
start)
do_start
+1 -1
View File
@@ -98,7 +98,7 @@ do_reload()
# ----------------------------------------------------
if [ ! -e /etc/gentoo-release ]; then
if [ ! -e /sbin/openrc-run ]; then
case "$1" in
start)
do_start