aboutsummaryrefslogtreecommitdiff
path: root/src/nssync.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-22 19:05:39 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-22 19:05:39 +0300
commitb2eb1ef329680f0faff37550954748fec4616001 (patch)
treeb20a61b20750d928c3055cfc94b2254dd694880e /src/nssync.h
parentb32cc9bd4d9695fee857e71520833ce89134169e (diff)
downloadnssync-b2eb1ef329680f0faff37550954748fec4616001.tar.gz
nssync-b2eb1ef329680f0faff37550954748fec4616001.tar.bz2
Optionally check if there is a running instance already
* src/config.c (nssync_kw) <pidfile>: New statement. * src/nssync.c (pidfile): New global. (create_pidfile, remove_pidfile, check_pidfile): New functions. (main): Call check_pidfile. * src/nssync.h (pidfile): New extern.
Diffstat (limited to 'src/nssync.h')
-rw-r--r--src/nssync.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nssync.h b/src/nssync.h
index 52c317a..d083e7f 100644
--- a/src/nssync.h
+++ b/src/nssync.h
@@ -33,6 +33,7 @@ extern int preprocess_only;
extern int debug_level;
extern char *config_file;
extern char *slave_status_file;
+extern char *pidfile;
extern char *tempdir;
extern char *compare_command;
extern char *reload_command;

Return to:

Send suggestions and report system problems to the System administrator.