]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
daemon: make the message about going into background more apparent
authorVincent Bernat <vincent@bernat.im>
Wed, 28 Sep 2016 21:02:12 +0000 (23:02 +0200)
committerVincent Bernat <vincent@bernat.im>
Wed, 28 Sep 2016 21:02:12 +0000 (23:02 +0200)
Otherwise, people may think that lldpd just crashed.

src/daemon/lldpd.c

index 4a04cc94ec16964c33bda3e3acea9a7ccd839c02..5de44c9e23641572ad924c9f5d2fa00629c6333f 100644 (file)
@@ -1700,7 +1700,7 @@ lldpd_main(int argc, char *argv[], char *envp[])
            !lldpd_started_by_upstart() && !lldpd_started_by_systemd()) {
                int pid;
                char *spid;
-               log_debug("main", "daemonize");
+               log_info("main", "going into background");
                if (daemon(0, 0) != 0)
                        fatal("main", "failed to detach daemon");
                if ((pid = open(pidfile,