amend init script to check if pidfile's pid is actually running, behave correctly accordingly