Implement -p pidfile option