mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
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:
committed by
Brian Behlendorf
parent
513168abd2
commit
c53fb0113c
@@ -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; \
|
||||
|
||||
@@ -308,7 +308,7 @@ do_start()
|
||||
|
||||
# ----------------------------------------------------
|
||||
|
||||
if [ ! -e /etc/gentoo-release ]
|
||||
if [ ! -e /sbin/openrc-run ]
|
||||
then
|
||||
case "$1" in
|
||||
start)
|
||||
|
||||
@@ -199,7 +199,7 @@ do_stop()
|
||||
|
||||
# ----------------------------------------------------
|
||||
|
||||
if [ ! -e /etc/gentoo-release ]
|
||||
if [ ! -e /sbin/openrc-run ]
|
||||
then
|
||||
case "$1" in
|
||||
start)
|
||||
|
||||
@@ -58,7 +58,7 @@ do_stop()
|
||||
|
||||
# ----------------------------------------------------
|
||||
|
||||
if [ ! -e /etc/gentoo-release ]; then
|
||||
if [ ! -e /sbin/openrc-run ]; then
|
||||
case "$1" in
|
||||
start)
|
||||
do_start
|
||||
|
||||
@@ -98,7 +98,7 @@ do_reload()
|
||||
|
||||
# ----------------------------------------------------
|
||||
|
||||
if [ ! -e /etc/gentoo-release ]; then
|
||||
if [ ! -e /sbin/openrc-run ]; then
|
||||
case "$1" in
|
||||
start)
|
||||
do_start
|
||||
|
||||
Reference in New Issue
Block a user