check process from pidfile