[rust-dev] Daemonizing a process
errordeveloper at gmail.com
Wed Jul 9 01:00:42 PDT 2014
Additionally, I'd like to note that modern best practice is to relay this
on the init process itself. With modern init systems, such as systemd or
launchctl, this works very nicely and application developer doesn't have to
care about daemonisation and logging is also done simply via stdout.
On 9 Jul 2014 08:33, "richo" <richo at psych0tik.net> wrote:
> On 08/07/14 23:47 -0700, Gulshan Singh wrote:
>> Is there currently any way to daemonize a process in Linux? I was using
>> `daemon` function in C: http://man7.org/linux/man-
>> I asked in the IRC but I didn't get a response.
> There's going to be excitement with this, mostly because typically
> daemonising involves forking twice to ensure that you're reparented to
> which will result in a Really Bad Time if you're using libnative.
> Therefore, it's possible but only if you've not done too much stuff, which
> would be unsafe.
> Seperately though, rust *does* need a coherent story here. I'm just not at
> all sure what it will look like.
> Rust-dev mailing list
> Rust-dev at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rust-dev