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:
Adrian-Ken Rueegsegger
2013-03-19 15:23:45 +01:00
committed by Tobias Brunner
parent 0aa5a46669
commit 4dc3ef94a1
5 changed files with 126 additions and 38 deletions
+1 -1
View File
@@ -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