Maryna Ishchenko

Results 3 comments of Maryna Ishchenko

Yep, I've written simple init.d, and take it on /etc/init.d: #!/bin/bash DAEMON_PATH="YOUR/PATH/TO/newrelic_logwatcher_agent.rb" DAEMON=newrelic_logwatcher_agent.rb NAME=newrelic_logwatcher_agent PIDFILE=/var/run/$NAME.pid case "$1" in start) printf "%-50s" "Starting $NAME..." cd $DAEMON_PATH PID=`/bin/ps -fu $USER| grep "logwatcher"...

check owner of file /var/run/newrelic_logwatcher_agent.pid (chown [user]:[user] var/run/newrelic_logwatcher_agent.pid) or change mod (chmod +755 var/run/newrelic_logwatcher_agent.pid) or run /etc/init.d/newrelic_logwatcher as root(with sudo)

Just in case, have you installed logwatcher? and could you make ls -la /var/run | grep "newrelic_logwatcher_agent.pid"