saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
25
init.d/onioncat
Executable file
25
init.d/onioncat
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/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 $?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user