stevenjack/spurious-server — pull request #12 by stevenjack (2014-12-06 09:15:43+00:00)
Title: [READY] Store PID in home dir

### Problem

The PID was stored in `/tmp`, this obviously caused in issue when `/tmp` was periodically cleaned out on some OS's such as OSX.

### Solution

As we can't write to `/var/run` without requesting sudo, and the daemon really doesn't need to run as sudo the solution is to store the pid in the users home directory.

The name has been changed to `.spurious-server` as this is what it uses to name the pid, and it's less intrusive as a hidden file in the home directory.