How do I daemonize a process?
Peter Boosten
peter at boosten.org
Mon Jul 23 08:59:21 UTC 2007
Simon 'corecode' Schubert wrote:
> Garrett Cooper wrote:
>> Garrett Cooper wrote:
>>> As the subject suggests I'm trying to determine how I can
>>> daemonize a C process, outside of using the rc infrastructure, so
>>> that it won't exit when the TTY exists. Does anyone know any quick
>>> references or examples?
>>> Thanks,
>>> -Garrett
>>
>> s/C process/C application process/
>> s/exists/exits/
>> s/any quick/of any quick/
>
> I suggest daemon(3) if it doesn't have to be portable.
>
What's wrong with nohup(1)?
Peter
--
http://www.boosten.org
More information about the freebsd-hackers
mailing list