Make pid file optional

On some systems pid file is not always necessary.On Solaris /var/run is
a temporary file system that is deleted on reboot meaning service
start/restart will report errors without the pid file