]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/tor
2 ########################################################################
3 # Begin $rc_base/init.d/tor
5 # Description : Anonymizing overlay network for TCP
7 ########################################################################
14 boot_mesg
"Starting tor..."
15 loadproc
/usr
/bin
/tor \
17 --defaults-torrc /usr
/share
/tor
/defaults-torrc \
23 boot_mesg
"Stopping tor..."
28 boot_mesg
"Reloading tor..."
29 reloadproc
/usr
/bin
/tor
39 # Reload the process if it is already running. Otherwise, restart.
40 if pidofproc
-s /usr
/bin
/tor
; then
48 statusproc
/usr
/bin
/tor
52 echo "Usage: ${0} {start|stop|reload|restart|reload-or-restart|status}"
57 # End $rc_base/init.d/tor