kill by givin a config file, instead of the logfile path