linux - Must my pidfile be located in /var/run? - Stack Overflow
The location of the pid file should be configurable. /var/run is standard for pid files, the same as /var/log is standard for logs. But your daemon should allow you to overwrite this setting in some config file.
linux - Must my pidfile be located in /var/run? - Stack Overflow