use pidfile in status