Re: [PATCH] tools: hv: introduce -n/--no-daemon option

2014-11-04 Thread Vitaly Kuznetsov
KY Srinivasan writes: >> -Original Message- >> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] >> Sent: Wednesday, October 22, 2014 9:07 AM >> To: KY Srinivasan; Haiyang Zhang; de...@linuxdriverproject.org >> Cc: linux-ker...@vger.kernel.org >> S

RE: [PATCH] tools: hv: introduce -n/--no-daemon option

2014-10-22 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Wednesday, October 22, 2014 9:07 AM > To: KY Srinivasan; Haiyang Zhang; de...@linuxdriverproject.org > Cc: linux-ker...@vger.kernel.org > Subject: [PATCH] tools: hv: introduce -n/

[PATCH] tools: hv: introduce -n/--no-daemon option

2014-10-22 Thread Vitaly Kuznetsov
All tools/hv daemons do mandatory daemon() on startup. However, no pidfile is created, this make it difficult for an init system to track such daemons. Modern linux distros use systemd as their init system. It can handle the daemonizing by itself, however, it requires a daemon to stay in foreground