mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
openSUSE initscript create /var/run/tor fixes Ticket #2573
(changes file added by nickm)
This commit is contained in:
parent
6426cd14f3
commit
f31ba6a356
3
changes/bug2574
Normal file
3
changes/bug2574
Normal file
@ -0,0 +1,3 @@
|
||||
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.
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user