Project

General

Profile

Bug #458

some servers may not have a pid file need option to not hook them to watchdog

Added by cpg over 10 years ago. Updated about 10 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
03/02/2010
Due date:
% Done:

0%


Description

mldonkey as a server, however, it does not seem to create a pid file.

there are probably more like that and we ought to consider making an option to not hook a server to monit, the watchdog.

History

#1 Updated by cpg over 10 years ago

crashplan also seems to not have a pid.

#2 Updated by gboudreau over 10 years ago

It (CrashPlan) does have one, not just where the default monitd config file expects it to be.
Starting the service creates a pid file here: /usr/local/crashplan/CrashPlanEngine.pid

Since I can't specify a custom pid file in the app packaging, I created a symlink to the pid file in the RPM, so monitd would work:
ln -s /usr/local/crashplan/CrashPlanEngine.pid /var/run/crashplan.pid

Would be better if I could specify where the pid file lives when packaging the app.

#3 Updated by dforbes about 10 years ago

Is the above symlink still in the RPM? I can't see it on either my test system or my production box.

While not terribly clean, /usr/local/crashplan/bin/CrashPlanEngine has:

PIDFILE="$TARGETDIR/${NAME}.pid"

I've edited to PIDFILE="/var/run/crashplan.pid" and can confirm that this works. DF

Also available in: Atom