Browse files

removing hack from init script

the logfile is no longer created before dropping privileges but afterwards, which fixes the permission issues
  • Loading branch information...
1 parent e84c900 commit 615f092f43bc27116ee2ea26d469e8e8d70e4c20 @mriehl mriehl committed Mar 19, 2013
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/main/python/yadtreceiver/yadtreceiver
View
3 src/main/python/yadtreceiver/yadtreceiver
@@ -14,9 +14,6 @@ LOGFILE=/var/log/yadtreceiver/yadtreceiver.log
[[ -r $CONFIGFILE ]] && source $CONFIGFILE
-LOG_DIR=`dirname $LOGFILE`
-[ "$(ls -A $LOG_DIR/)" ] && chmod --recursive g+rw,o+r $LOG_DIR/*
-
get_pid() {
ps -eopid,cmd | grep -v grep | grep "python .*twistd .*$TACFILE" | sed "s/^ *//;s/ .*//"
}

0 comments on commit 615f092

Please sign in to comment.