From: Martin Schwenke Date: Wed, 7 Mar 2018 01:11:53 +0000 (+1100) Subject: ctdb-daemon: Provide default location for ctdbd PID file X-Git-Tag: talloc-2.1.12~216 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a5473854f28b6fbe6e0c269fca752c7e7fff2dc;p=thirdparty%2Fsamba.git ctdb-daemon: Provide default location for ctdbd PID file Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/server/ctdbd.c b/ctdb/server/ctdbd.c index ba6dd54b053..a2534d82a62 100644 --- a/ctdb/server/ctdbd.c +++ b/ctdb/server/ctdbd.c @@ -156,6 +156,8 @@ int main(int argc, const char *argv[]) poptContext pc; struct tevent_context *ev; + ctdbd_pidfile = CTDB_RUNDIR "/ctdbd.pid"; + pc = poptGetContext(argv[0], argc, argv, popt_options, POPT_CONTEXT_KEEP_FIRST); while ((opt = poptGetNextOpt(pc)) != -1) {