kirknorthrop / squeezelite

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

PATCH: error messages and PID file #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1). Add some error output for bad args along with an error level exit code.

2). Add support for writing the process ID to a -P PIDFile.pid.

Original issue reported on code.google.com by wgordonh...@gmail.com on 30 Dec 2014 at 5:08

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks - I've committed a variant of this which unlinks the pid file on exit 
and tries to deal with daemonize forking and changing directory.  Let me know 
if it works for you.

Original comment by trio...@btinternet.com on 30 Dec 2014 at 9:14

GoogleCodeExporter commented 8 years ago

Original comment by trio...@btinternet.com on 1 Jan 2015 at 10:41

GoogleCodeExporter commented 8 years ago
Thanks for implementing this.  I've managed to make the PID feature work with 
sysv init scripts and with systemd unit files.  Making this work with upstart 
script stanzas with the pidfile under /var/run eludes me, though, unless the 
service is run as root.  That's no big deal, as upstart is *supposed* to keep 
track of PIDs without the need for pidfiles.

Thanks again..

Original comment by wgordonh...@gmail.com on 1 Jan 2015 at 4:27