From d8d5e52e45c70b4506d95a84fd57596078a10bb0 Mon Sep 17 00:00:00 2001
From: Danny Auble <da@llnl.gov>
Date: Tue, 27 May 2008 16:18:11 +0000
Subject: [PATCH] patch from Gennaro Oliva for updating the logs in the
 slurmdbd

---
 doc/man/man1/sacctmgr.1 | 28 ++++++++++++++--------------
 src/slurmdbd/slurmdbd.c |  2 +-
 2 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/doc/man/man1/sacctmgr.1 b/doc/man/man1/sacctmgr.1
index 66b59df56fa..4f715d7415f 100644
--- a/doc/man/man1/sacctmgr.1
+++ b/doc/man/man1/sacctmgr.1
@@ -182,25 +182,25 @@ An arbitrary string describing an account.
 .TP
 \fIFairshare\fP=<fairshare>
 Number used in conjunction with other accounts to determine job priority.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 .TP
 \fIMaxCPUSecs\fP=<max cpu seconds> 
 Maximum number of cpu seconds each job is able to use in this account.
 This is overridden if set directly on a user. 
 Default is the cluster's limit.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 .TP
 \fIMaxJobs\fP=<max jobs>
 Maximum number of jobs each user is allowed to run at one time in this account.
 This is overridden if set directly on a user. 
 Default is the cluster's limit.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 .TP
 \fIMaxNodes\fP=<max nodes>
 Maximum number of nodes each job is able to use in this account.
 This is overridden if set directly on a user. 
 Default is the cluster's limit.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 .TP
 \fIMaxWall\fP=<max wall>
 Maximum wall clock time each job is able to use in this account.
@@ -209,7 +209,7 @@ Default is the cluster's limit.
 <max wall> format is <min> or <min>:<sec> or <hr>:<min>:<sec> or 
 <days>\-<hr>:<min>:<sec> or <days>\-<hr>.
 The value is recorded in minutes with rounding as needed.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 .TP
 \fIName\fP=<name>
 The name of a bank account.
@@ -230,7 +230,7 @@ This is overridden if set directly on a user.
 .TP
 \fIFairshare\fP=<fairshare>
 Number used in conjunction with other accounts to determine job priority.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 .TP
 \fIName\fP=<name>
 The name of a cluster.
@@ -241,18 +241,18 @@ configuration file for some Slurm-managed cluster.
 Maximum number of cpu seconds each job is able to use in this account.
 This is overridden if set directly on an account or user. 
 Default is no limit.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 \fIMaxJobs\fP=<max jobs>
 Maximum number of jobs each user is allowed to run at one time in this account.
 This is overridden if set directly on an account or user. 
 Default is no limit.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 .TP
 \fIMaxNodes\fP=<max nodes>
 Maximum number of nodes each job is able to use in this account.
 This is overridden if set directly on an account or user. 
 Default is no limit.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 .TP
 \fIMaxWall\fP=<max wall>
 Maximum wall clock time each job is able to use in this account.
@@ -261,7 +261,7 @@ Default is no limit.
 <max wall> format is <min> or <min>:<sec> or <hr>:<min>:<sec> or 
 <days>\-<hr>:<min>:<sec> or <days>\-<hr>.
 The value is recorded in minutes with rounding as needed.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 .TP
 \fIQosLevel\fP=<qos>
 Quality of Service jobs are to run at for this account.  Now consisting
@@ -287,7 +287,7 @@ specified at submission time.
 \fIFairshare\fP=<fairshare>
 Number used in conjunction with other users in the same account to
 determine job priority.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 .TP
 \fIName\fP=<name>
 Name of user.
@@ -299,14 +299,14 @@ account specified.  Now consisting of Normal, Standby, Expedite, and Exempt.
 \fIMaxCPUSecs\fP=<max cpu seconds> 
 Maximum number of cpu seconds this user can use in each job using the
 account specified.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 .TP
 \fIMaxJobs\fP=<max jobs>
 Maximum number of jobs this user can run at a given time using the
 account specified.
 This is overridden if set directly on a user. 
 Default is the account's limit.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 .TP
 \fIMaxNodes\fP=<max nodes>
 Maximum number of nodes this user can allocate in each job using the
@@ -320,7 +320,7 @@ Default is the account's limit.
 <max wall> format is <min> or <min>:<sec> or <hr>:<min>:<sec> or 
 <days>\-<hr>:<min>:<sec> or <days>\-<hr>.
 The is recorded in minutes with rounding as needed.
-To clear a previously set value use the modify command with a new value of -1.
+To clear a previously set value use the modify command with a new value of \-1.
 
 .SH "EXAMPLES"
 .eo
diff --git a/src/slurmdbd/slurmdbd.c b/src/slurmdbd/slurmdbd.c
index faf5a738aed..47fdcbba728 100644
--- a/src/slurmdbd/slurmdbd.c
+++ b/src/slurmdbd/slurmdbd.c
@@ -84,7 +84,6 @@ static void  _kill_old_slurmdbd(void);
 static void  _parse_commandline(int argc, char *argv[]);
 static void *_signal_handler(void *no_data);
 static void  _update_logging(void);
-static void  _update_logging(void);
 static void  _usage(char *prog_name);
 
 /* main - slurmctld main function, start various threads and process RPCs */
@@ -355,6 +354,7 @@ static void *_signal_handler(void *no_data)
 		case SIGHUP:	/* kill -1 */
 			info("Reconfigure signal (SIGHUP) received");
 			read_slurmdbd_conf();
+			_update_logging();
 			break;
 		case SIGINT:	/* kill -2  or <CTRL-C> */
 		case SIGTERM:	/* kill -15 */
-- 
GitLab