checkconfig || return 1
ebegin "Starting Tor"
HOME=/var/lib/tor
start-stop-daemon --start --pidfile "${PIDFILE}" --quiet --chuid tor --exec /usr/bin/tor -- --runasdaemon 1 --PidFile "${PIDFILE}" &> /dev/null
start-stop-daemon --start --quiet --chuid tor --exec /usr/bin/tor -- --runasdaemon 1 &> /dev/null
eend $?
}
stop() {
ebegin "Stopping Tor"
start-stop-daemon --stop --pidfile "${PIDFILE}" --chuid tor --exec /usr/bin/tor -- --PidFile "${PIDFILE}"
start-stop-daemon --stop --quiet --chuid tor --exec /usr/bin/tor