rustit/mirror_runit/runit-2.1.2/etc/macosx/StartupItems/runit
2024-03-24 23:51:57 +00:00

22 lines
332 B
Bash
Executable file

#!/bin/sh
##
# runit
##
. /etc/rc.common
StartService() {
ConsoleMessage "Starting runit service supervision"
/bin/csh -cf '/sbin/runsvdir-start &'
}
StopService() {
ConsoleMessage "Stopping runit service supervision"
sv -w196 force-stop /service/*
sv exit /service/*
}
RestartService() {
return 0
}
RunService "$1"