Re: init script question

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



Hi,

On Fri, Dec 12, 2008 at 09:13, Davide Cittaro
<davide.cittaro@xxxxxxxxxxxxxxxxxx> wrote:
> Ok, another one: the process I would like to start is not a daemon
> itself. If I start it with "daemon" function it remains in foreground.
> Ok, I can play with '&' but is there a init function to start in
> background a process?

Use "nohup" and redirect file descriptors to be safe.

nohup cmd... </dev/null >/dev/null 2>&1 &

Look up "man nohup" for (a few) more details.

HTH,
Filipe
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux