comparison 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
comparison
equal deleted inserted replaced
28453:8a7110e351ec 28454:8062869860b8
537 537
538 if (argc == 2) { 538 if (argc == 2) {
539 int sig = 0; 539 int sig = 0;
540 if (strcmp(argv[1], "--kill-chg-daemon") == 0) 540 if (strcmp(argv[1], "--kill-chg-daemon") == 0)
541 sig = SIGTERM; 541 sig = SIGTERM;
542 if (strcmp(argv[1], "--reload-chg-daemon") == 0)
543 sig = SIGHUP;
544 if (sig > 0) { 542 if (sig > 0) {
545 killcmdserver(&opts, sig); 543 killcmdserver(&opts, sig);
546 return 0; 544 return 0;
547 } 545 }
548 } 546 }