j4w3d / gross

Automatically exported from code.google.com/p/gross
Other
0 stars 0 forks source link

grossd should write a pid file after daemonizing #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The 'grossd' daemon should include a configuration option to write a
pidfile after daemonizing itself.

Currently, the situation is a bit awkward as it's impossible to create a
pidfile externally if the daemon forks - and the non-forking option for
grossd disables logging to syslog.

Original issue reported on code.google.com by nuutti.k...@gmail.com on 15 Apr 2008 at 12:30

GoogleCodeExporter commented 8 years ago
I just committed the requested feature to the 0.9 branch in the svn repository.
Commit log entry:

Fixed issue #54: grossd should write a pid file after daemonizing (RFE)

Implemented pidfile creation and checking. New config option
'pidfile' controls the behaviour. Setting the option will make
grossd to write the process pid into the file specified by the
full path. An optional parameter 'check' can be set to keep
grossd from starting if the pidfile already exists.

pidfile = /full/path[;check]

Another way to control this is by command line options -p and -P.
Both of the options will enable pidfile creation, and -P will
check the existence of the file.

This will be included in 0.9.3 release.

Original comment by eino.tuominen@gmail.com on 16 Apr 2008 at 9:06

GoogleCodeExporter commented 8 years ago

Original comment by eino.tuominen@gmail.com on 16 Apr 2008 at 9:10

GoogleCodeExporter commented 8 years ago
Just noticed a typo in the commit log entry, the issue number ought to be #58,
obviously.. ;-) I have no idea if that can ever be corrected in the log...

Original comment by eino.tuominen@gmail.com on 16 Apr 2008 at 9:11