openrc option added
This commit is contained in:
parent
8e947521aa
commit
dfddd350ed
1
larbs.sh
1
larbs.sh
@ -129,6 +129,7 @@ putgitrepo() { # Downlods a gitrepo $1 and places the files in $2 only overwriti
|
|||||||
|
|
||||||
case "$(readlink /sbin/init)" in
|
case "$(readlink /sbin/init)" in
|
||||||
runit*) serviceinit(){ ln -s "/etc/runit/sv/$1" /run/runit/service; sv restart "$1" ;} ;;
|
runit*) serviceinit(){ ln -s "/etc/runit/sv/$1" /run/runit/service; sv restart "$1" ;} ;;
|
||||||
|
openrc*) serviceinit() { rc-update add "$1" default ;} ;;
|
||||||
*) serviceinit(){ systemctl enable "$1"; systemctl start "$1" ;} ;;
|
*) serviceinit(){ systemctl enable "$1"; systemctl start "$1" ;} ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user