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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux