write pidfile
--pidfile is meaningless in start