26 lines
367 B
Plaintext
Executable File
26 lines
367 B
Plaintext
Executable File
#!/sbin/runscript
|
|
|
|
depend() {
|
|
need net tor
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting Ocat daemon..."
|
|
start-stop-daemon \
|
|
--start \
|
|
--pidfile "${PIDFILE}" \
|
|
--quiet \
|
|
--exec /usr/bin/ocat -- -P "${PIDFILE}" ${OCAT_OPTS} &> /dev/null
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping Ocat daemon..."
|
|
start-stop-daemon \
|
|
--stop \
|
|
--quiet \
|
|
--pidfile "${PIDFILE}"
|
|
eend $?
|
|
}
|
|
|