[SSSD] [PATCH] Daemonize by default

Sumit Bose sbose at redhat.com
Wed Dec 1 12:57:40 UTC 2010


Hi,

with this patch sssd becomes a daemon if neither -D nor -i are given on
the command line as indicated by the --help output. This should fix
ticket #694.

bye,
Sumit
-------------- next part --------------
From 0cf98a7ececd9b85321e4c88bf919f977893435d Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Wed, 1 Dec 2010 13:52:58 +0100
Subject: [PATCH] Daemonize by default

---
 src/monitor/monitor.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index ac6ef19..670753a 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -2250,6 +2250,10 @@ int main(int argc, const char *argv[])
         return 1;
     }
 
+    if (!opt_daemon && !opt_interactive) {
+        opt_daemon = 1;
+    }
+
     poptFreeContext(pc);
 
     uid = getuid();
-- 
1.7.3.2



More information about the sssd-devel mailing list