Fix tor pid file permission (#3834)
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 18 Sep 2008 08:17:48 +0000 (08:17 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 18 Sep 2008 08:17:48 +0000 (08:17 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12621 3c298f89-4303-0410-b956-a3cf2f4a3e73

net/tor/files/tor.init

index 6944e88..daa329c 100644 (file)
@@ -16,6 +16,7 @@ start() {
        [ -d $LIB_D ] || mkdir -p $LOG_D
        [ -d $LIB_D ] || ( mkdir -p $LIB_D && chown $RUN_USER:$RUN_GROUP $LIB_D )
        [ -d $RUN_D ] || mkdir -p $RUN_D
+       [ -f $PID_F ] || ( touch $PID_F && chown $RUN_USER:$RUN_GROUP $PID_F )
        $BIN $OPTIONS
 }