[PATCH 1/2] Run in foreground when using systemd

Aron Xu aron at debian.org
Sat Jan 24 00:01:16 PST 2015


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?
>
>
>



More information about the openconnect-devel mailing list