Version 2.4 : adding pidfile to avoid duplicate instance running