Check the pidfile to prevent 2 instances running at once.