Monit constantly trying to restart Crashplan
Posted: Wed Jan 02, 2013 7:44 am
Have just noticed that monit is constantly running gobbling up CPU time. On investigation it seems it is trying to constantlty restart Crashplan and failing. It seems to be failing as you can see below because monit is looking for the file "/var/run/crashplan.pid" which doesn't exist;
And this is because the init.d file as shown below doesn't create one;
A quick check of the crasplan status gives the following;
A quick workaround to prove it is done by doing;
monit goes back to it's quiet self
Jim!
Code: Select all
WARNING - This file was automatically generated on Thu Aug 16 13:49:42 +0100 2012
check process crashplan with pidfile /var/run/crashplan.pid
start program = "/etc/init.d/crashplan start"
stop program = "/etc/init.d/crashplan stop"
Code: Select all
#!/bin/sh
# Linux Standard Base comments
### BEGIN INIT INFO
# Provides: CrashPlanEngine
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: CrashPlan Engine
# Description: CrashPlan backup service engine
### END INIT INFO
#############################################################
# Init script for CrashPlanEngine
#############################################################
# Defaults
SCRIPTNAME=/usr/local/crashplan/bin/CrashPlanEngine
case "$1" in
start)
$SCRIPTNAME start
;;
stop)
$SCRIPTNAME stop
;;
restart)
$SCRIPTNAME restart
;;
force-reload)
$SCRIPTNAME force-reload
;;
status)
$SCRIPTNAME status
;;
*)
echo "Usage: $0 <start|stop|restart|force-reload|status>" >&2
exit 3
;;
esac
exit 0
Code: Select all
/etc/init.d/crashplan status
CrashPlan Engine (pid 3694) is running.
Code: Select all
echo "3694" > /var/run/crashplan.pid
Jim!