rustit/mirror_runit/runit-2.1.2/etc/macosx/StartupItems/runit

23 lines
332 B
Text
Raw Normal View History

2024-03-25 00:51:57 +01:00
#!/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"