From: florian Date: Thu, 18 Sep 2008 08:17:48 +0000 (+0000) Subject: Fix tor pid file permission (#3834) X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=07eaf99777becf164c70c6323825ff224fd175f4;p=packages.git Fix tor pid file permission (#3834) git-svn-id: svn://svn.openwrt.org/openwrt/packages@12621 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/net/tor/files/tor.init b/net/tor/files/tor.init index 6944e8868..daa329c3c 100644 --- a/net/tor/files/tor.init +++ b/net/tor/files/tor.init @@ -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 }