added more config options for daemon and letting the daemon update the config and shutdown based on config value shutdown