summaryrefslogtreecommitdiffabout
path: root/src/nssync.c
Side-by-side diff
Diffstat (limited to 'src/nssync.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/nssync.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nssync.c b/src/nssync.c
index d10ce05..8f4fad2 100644
--- a/src/nssync.c
+++ b/src/nssync.c
@@ -30,6 +30,7 @@ int debug_level;
char *config_file = SYSCONFDIR "/nssync.conf";
char *slave_status_file;
char *pidfile;
+char *cli_pidfile;
int force;
char *tempdir;
char *reload_command = "/usr/sbin/rndc reload";
@@ -702,6 +703,9 @@ main(int argc, char **argv)
EX_CONFIG : 0);
config_parse();
+ if (cli_pidfile)
+ pidfile = cli_pidfile;
+
check_pidfile();
if (check_ns)

Return to:

Send suggestions and report system problems to the System administrator.