Option -t allows a settings file to be given on the command line.
This patch removes that facility. It is a rarely used facility.
<arg choice="opt"><option>-h <replaceable>ip:port</replaceable></option></arg>
<arg choice="opt"><option>-l <replaceable>logfile</replaceable></option></arg>
<arg choice="opt"><option>-p <replaceable>pidfile</replaceable></option></arg>
- <arg choice="opt"><option>-t <replaceable>path</replaceable></option></arg>
<arg choice="opt"><option>-T <replaceable>session_timeout</replaceable></option></arg>
<arg choice="opt"><option>-u <replaceable>uid</replaceable></option></arg>
<arg choice="opt"><option>-V</option></arg>
</varlistentry>
<varlistentry>
- <term><option>-t <replaceable>path</replaceable></option></term>
- <listitem>
- <para>
- Specifies a file or directory with alternative settings. This
- overrides the <literal>settings</literal> element in the main
- configuration.
- </para>
- </listitem>
- </varlistentry>
- <varlistentry>
<term><option>-T <replaceable>session_timeout</replaceable></option></term>
<listitem>
<para>
#include <yaz/sc.h>
-static char *path_override = 0;
static struct conf_config *sc_stop_config = 0;
void child_handler(void *data)
{
struct conf_config *config = (struct conf_config *) data;
- config_read_settings(config, path_override);
+ config_read_settings(config);
pazpar2_event_loop();
}
yaz_log_init_prefix("pazpar2");
yaz_log_xml_errors(0, YLOG_WARN);
- while ((ret = options("dDf:h:l:p:t:T:u:VX", argv, argc, &arg)) != -2)
+ while ((ret = options("dDf:h:l:p:T:u:VX", argv, argc, &arg)) != -2)
{
switch (ret)
{
case 'p':
pidfile = arg;
break;
- case 't':
- path_override = arg;
- break;
case 'T':
session_timeout = atoi(arg);
if (session_timeout < 9 || session_timeout > 86400)
" -h [host:]port (REST protocol listener)\n"
" -l file log to file\n"
" -p pidfile PID file\n"
- " -t settings\n"
" -T session_timeout\n"
" -u uid\n"
" -V show version\n"
}
}
-void config_read_settings(struct conf_config *config,
- const char *path_override)
+void config_read_settings(struct conf_config *config)
{
struct conf_service *s = config->servers->service;
for (;s ; s = s->next)
{
init_settings(s);
- if (path_override)
- settings_read(s, path_override);
- else if (s->settings)
+ if (s->settings)
settings_read(s, s->settings);
else if (config->servers->server_settings)
settings_read(s, config->servers->server_settings);
xsltStylesheet *conf_load_stylesheet(struct conf_config *config,
const char *fname);
-void config_read_settings(struct conf_config *config,
- const char *path_override);
+void config_read_settings(struct conf_config *config);
struct conf_service *locate_service(struct conf_server *server,
const char *service_id);