Permalink
Browse files

ensuring that daemon logs can be deleted by the group

  • Loading branch information...
1 parent 5b1ac7f commit d438bf09b87c43b134eac52301bbf9c4f6ecd63f @mriehl mriehl committed Mar 19, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/main/python/yadtreceiver/yadtreceiver
@@ -10,10 +10,13 @@ PIDFILE=/var/run/yadtreceiver.pid
TACFILE=/etc/twisted-taps/yadtreceiver.tac
TWISTD=/usr/bin/twistd
CONFIGFILE=/etc/sysconfig/yadtreceiver
-LOGFILE=/var/log/yadtreceiver.log
+LOGFILE=/var/log/yadtreceiver/yadtreceiver.log
[[ -r $CONFIGFILE ]] && source $CONFIGFILE
+LOG_DIR=`dirname $LOGFILE`
+chmod --recursive g+w $LOG_DIR/*
+
get_pid() {
ps -eopid,cmd | grep -v grep | grep "python .*twistd .*$TACFILE" | sed "s/^ *//;s/ .*//"
}

0 comments on commit d438bf0

Please sign in to comment.