Change default directory to /var/run
Change default directory to /var/run

On many Linux distributions, /tmp is not meant to be used for long-lived files and will be cleaned up after a certain period. /var/run is the appropriate place for pidfiles.
samullen/pidfile