Init systems like systemd and upstart prefer daemons run in foreground so that it can tell when they die/crash/etc easily, for forking daemons it's harder to determine which is the real parent process. Thanks, Aron On Sat, Jan 24, 2015 at 3:56 PM, Nikos Mavrogiannopoulos <nmav at gnutls.org> wrote: > On Sat, 2015-01-24 at 12:04 +0800, Aron Xu wrote: > >> PIDFile=/var/run/ocserv.pid >> -ExecStart=/usr/sbin/ocserv --pid-file /var/run/ocserv.pid --config /etc/ocserv/ocserv.conf >> +ExecStart=/usr/sbin/ocserv --foreground --pid-file /var/run/ocserv.pid --config /etc/ocserv/ocserv.conf >> ExecReload=/bin/kill -HUP $MAINPID > > What is the advantage of that? > > >