22 lines
332 B
Bash
Executable file
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"
|