diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-03-09 16:20:14 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-03-09 16:20:14 -0500 |
commit | 19baca4837557cf25760fb80478bf3f9ad6822e1 (patch) | |
tree | d98f0e85de98dcfcf6e0c094be54e5ab6688619f /contrib | |
parent | b5f2b449ee590f9b1597ab2277a867a3edcf4b8f (diff) | |
parent | f31ba6a3566e9f7bba827adfebe865c8179a06db (diff) | |
download | tor-19baca4837557cf25760fb80478bf3f9ad6822e1.tar.gz tor-19baca4837557cf25760fb80478bf3f9ad6822e1.zip |
Merge remote branch 'origin/maint-0.2.2'
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/suse/tor.sh.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/suse/tor.sh.in b/contrib/suse/tor.sh.in index 5dad6499b9..b7e9005eb5 100644 --- a/contrib/suse/tor.sh.in +++ b/contrib/suse/tor.sh.in @@ -51,6 +51,8 @@ export TORUSER TORGROUP=@TORGROUP@ export TORGROUP +TOR_DAEMON_PID_DIR="@LOCALSTATEDIR@/run/tor" + if [ -x /bin/su ] ; then SUPROG=/bin/su elif [ -x /sbin/su ] ; then @@ -67,6 +69,12 @@ case "$1" in start) echo "Starting tor daemon" + + if [ ! -d $TOR_DAEMON_PID_DIR ] ; then + mkdir -p $TOR_DAEMON_PID_DIR + chown $TORUSER:$TORGROUP $TOR_DAEMON_PID_DIR + fi + ## Start daemon with startproc(8). If this fails ## the echo return value is set appropriate. |