Pid file is optional