[go-nuts] daemon

384 views
Skip to first unread message

Oleg Puchinin

unread,
Apr 18, 2010, 4:00:37 AM4/18/10
to golang-nuts
Hello !
One question.
How to daemonize program ? (like daemon(3))

Oleg.


--
Subscription settings: http://groups.google.com/group/golang-nuts/subscribe?hl=en

Andrew Gerrand

unread,
Apr 18, 2010, 8:46:02 AM4/18/10
to Oleg Puchinin, golang-nuts
I don't believe there's currently a library function to do it, but
it's certainly possible to implement as all the relevant syscalls are
available within a Go program.

You could try finding a C implementation of 'daemon' for your system
and implementing it in Go:

http://www.google.com/codesearch?q=stdlib+daemon&hl=en

Uriel

unread,
Apr 18, 2010, 10:15:43 AM4/18/10
to Oleg Puchinin, golang-nuts
On Sun, Apr 18, 2010 at 10:00 AM, Oleg Puchinin
<graycard...@gmail.com> wrote:
> Hello !
> One question.
> How to daemonize program ? (like daemon(3))

You might want to check and star this issue:

http://code.google.com/p/go/issues/detail?id=227

uriel
Reply all
Reply to author
Forward
0 new messages