progrium/gservice — Issue #37: default pidfile put in home directory
Author: progrium
Created: 2011-12-24 03:31:52+00:00
State: open

Putting the pidfile in the current directory by default feels messy. It should be in a global location by default (so you can run start/stop from anywhere). Inspired by this:

http://stackoverflow.com/questions/3957242/storing-pid-file-for-a-daemon-run-as-user

We can name the pidfile something more appropriate (myservice.conf.py -> myservice.pid or path.to.service.module -> path.to.service.module.pid) and then prepend with . and put in the current home directory. ie:

~/.myservice.pid
~/.path.to.service.module.pid