starter: Make daemon name configurable
A daemon can be specified using the '--daemon' command line parameter. This tells starter to invoke a daemon other than 'charon'. Additionally the ipsec script uses the environment variable DAEMON_NAME to tell the starter which daemon to use.
This commit is contained in:
committed by
Tobias Brunner
parent
0aa5a46669
commit
4dc3ef94a1
@@ -190,7 +190,7 @@ static void load_setup(starter_config_t *cfg, config_parsed_t *cfgp)
|
||||
/* verify the executables are actually available */
|
||||
#ifdef START_CHARON
|
||||
cfg->setup.charonstart = cfg->setup.charonstart &&
|
||||
daemon_exists("charon", CHARON_CMD);
|
||||
daemon_exists(daemon_name, cmd);
|
||||
#else
|
||||
cfg->setup.charonstart = FALSE;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user