Add --foreground option for nscd
authorAndreas Jaeger <aj@suse.de>
Wed, 9 May 2012 14:54:38 +0000 (16:54 +0200)
committerAndreas Jaeger <aj@suse.de>
Wed, 9 May 2012 14:54:38 +0000 (16:54 +0200)
commitbb90b80baa683336584716122f529b039c48d3af
treeda09c7c3b2c6aafe2da66c44b871790eb99271a9
parent1a4b75a190006bb013a61f2031a4de86e93a629f
Add --foreground option for nscd

For a better integration of nscd with systemd, we should run nscd not as
daemon but in the foreground. A new --foreground option should be added.

2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
    Andreas Jaeger  <aj@suse.de>

        * nscd/nscd.c (go_background): Replaced with...
        (run_mode): ... this.
(RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
        (options): Add -F --foreground.
        (main): Implement it.
        (parse_opt): Parse it.
ChangeLog
nscd/nscd.c