progrium / ginkgo

Python service microframework
http://ginkgo.readthedocs.org
MIT License
325 stars 48 forks source link

default pidfile put in home directory #37

Closed progrium closed 12 years ago

progrium commented 12 years ago

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

progrium commented 12 years ago

https://github.com/progrium/ginkgo/commit/96d5e3aea03353aae706eef12489a0de3681b114