Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fdff324081 |
@@ -22,6 +22,8 @@ cmds_dinit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cmds_runit() {
|
cmds_runit() {
|
||||||
|
mkdir -p /run/runit
|
||||||
|
ln -s /etc/runit/runsvdir/current /run/runit/service 2>/dev/null
|
||||||
COMMANDS[start]="runsv /etc/runit/sv/${SV}"
|
COMMANDS[start]="runsv /etc/runit/sv/${SV}"
|
||||||
COMMANDS[stop]="sv stop /etc/runit/sv/${SV}"
|
COMMANDS[stop]="sv stop /etc/runit/sv/${SV}"
|
||||||
COMMANDS[enable]="ln -s /etc/runit/sv/${SV} /run/runit/service/"
|
COMMANDS[enable]="ln -s /etc/runit/sv/${SV} /run/runit/service/"
|
||||||
@@ -84,3 +86,5 @@ case "${ACTION}" in
|
|||||||
help) usage; exit 0 ;;
|
help) usage; exit 0 ;;
|
||||||
*) usage; exit 1 ;;
|
*) usage; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
[ ${INIT} == s6 ] && s6-db-reload
|
||||||
|
|||||||
Reference in New Issue
Block a user