Use pidfile variable