diff contrib/chg/chg.c @ 28454:8062869860b8

chg: remove manual reload logic chgserver now validates and reloads configs automatically. Manually reloading is no longer necessary. Besides, we are deprecating pid files since the server will periodically check its ownership of the socket file and exit if it does not own the socket file any longer, which works more reliable than a pid file. This patch removes the SIGHUP reload logic from both chg server and client.
author Jun Wu <quark@fb.com>
date Thu, 10 Mar 2016 00:12:33 +0000
parents 8a7110e351ec
children 412ee35a8005
line wrap: on
line diff
--- a/contrib/chg/chg.c	Wed Mar 09 01:20:57 2016 +0000
+++ b/contrib/chg/chg.c	Thu Mar 10 00:12:33 2016 +0000
@@ -539,8 +539,6 @@
 		int sig = 0;
 		if (strcmp(argv[1], "--kill-chg-daemon") == 0)
 			sig = SIGTERM;
-		if (strcmp(argv[1], "--reload-chg-daemon") == 0)
-			sig = SIGHUP;
 		if (sig > 0) {
 			killcmdserver(&opts, sig);
 			return 0;