summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-12-01 13:52:58 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-12-01 13:50:48 -0500
commitcb57f38188a761c3654c5a7aeb5adaae23bf30d5 (patch)
treee1aa289fec2cb84bfe78104dad7f3123cb0cc2f6
parent40def28805f9df3ff640209def765723cd8e2de3 (diff)
downloadsssd-cb57f38188a761c3654c5a7aeb5adaae23bf30d5.tar.gz
sssd-cb57f38188a761c3654c5a7aeb5adaae23bf30d5.tar.xz
sssd-cb57f38188a761c3654c5a7aeb5adaae23bf30d5.zip
Daemonize by default
-rw-r--r--src/monitor/monitor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index 3eca76498..640d94adc 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();