Equivalent to FreeBSD's daemon program?
by z8z1q1 from LinuxQuestions.org on (#6PEGE)
Is there a program that has the same or similar function to daemon(8) (https://man.freebsd.org/cgi/man.cgi?daemon) in GNU?
I have been wondering how to properly daemonize a process for a while, but haven't found an adequate solution, and ended up writing a simple program that pretty much just calls fork(2). I want my shell scripts and configs to be portable, so that is obviously not a good solution.
Thanks. :banghead:
I have been wondering how to properly daemonize a process for a while, but haven't found an adequate solution, and ended up writing a simple program that pretty much just calls fork(2). I want my shell scripts and configs to be portable, so that is obviously not a good solution.
Thanks. :banghead: