use pidfile for status