(changes file added by nickm)
--- /dev/null
+ 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.
TORGROUP=@TORGROUP@
export TORGROUP
+TOR_DAEMON_PID_DIR="@LOCALSTATEDIR@/run/tor"
+
if [ -x /bin/su ] ; then
SUPROG=/bin/su
elif [ -x /sbin/su ] ; then
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.