Commit 19baca48 authored by Nick Mathewson's avatar Nick Mathewson 🦀
Browse files

Merge remote branch 'origin/maint-0.2.2'

parents b5f2b449 f31ba6a3
Loading
Loading
Loading
Loading

changes/bug2574

0 → 100644
+3 −0
Original line number Diff line number Diff line
  o Minor packaging issues
    - Create the /var/run/tor directory on startup on OpenSUSE if it is
      not already created.  Patch from Andreas Stieger.  Fixes bug 2574.
+8 −0
Original line number Diff line number Diff line
@@ -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.