]> granicus.if.org Git - pgbouncer/commitdiff
win32: make service_name alias for job_name
authorMarko Kreen <markokr@gmail.com>
Fri, 16 Jan 2009 13:02:32 +0000 (13:02 +0000)
committerMarko Kreen <markokr@gmail.com>
Fri, 16 Jan 2009 13:02:32 +0000 (13:02 +0000)
src/main.c

index 0f85b1acd47a3ba0c5a774d9ea47e0da915e6b0f..ddfc16649a840218f9ea981a543e591bc3b885b6 100644 (file)
@@ -132,7 +132,10 @@ int cf_log_pooler_errors = 1;
  * config file description
  */
 ConfElem bouncer_params[] = {
-{"job_name",           true, CF_STR, &cf_jobname},
+{"job_name",           false, CF_STR, &cf_jobname},
+#ifdef WIN32
+{"service_name",       false, CF_STR, &cf_jobname}, /* alias for job_name */
+#endif
 {"conffile",           true, CF_STR, &cf_config_file},
 {"logfile",            true, CF_STR, &cf_logfile},
 {"pidfile",            false, CF_STR, &cf_pidfile},