Commit f84463d7 authored by WinterFairy's avatar WinterFairy
Browse files

Add a startup script for the control port filter

The control port filter will be started as the vidalia user,
as the permissions it requires matches well with that of
the vidalia user.

It is always started, and does never need to be restarted.
If Tor is not running when a newnym request is made, it will
just return back an error message.
parent 4655b204
......@@ -9,6 +9,7 @@ tails-reconfigure-kexec
tails-reconfigure-memlockd
tails-sdmem-on-media-removal
tails-set-wireless-devices-state
tor-controlport-filter
"
PATCHED_INITSCRIPTS="
......
#! /bin/sh
### BEGIN INIT INFO
# Provides: tor-controlport-filter
# Required-Start: $remote_fs
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Tor control port filter proxy
# Description: Tor control port filter proxy
### END INIT INFO
case "$1" in
start)
start-stop-daemon \
--start \
--quiet \
--background \
--chuid vidalia:vidalia \
--exec /usr/local/sbin/tor-controlport-filter
;;
*)
echo "Usage: $0 start" >&2
exit 3
;;
esac
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment