Set up app as an init.d daemon, but it isn't running in background and stdout isn't blocked
I'm fairly new to linux daemons (doing this on Debian 6), and I have a custom HTTP server I want to set up to run as a daemon.
I copied and modified /etc/init.d/skeleton appropriately, and my program does run when I do "service myapp start". BUT it runs in the foreground and also stdin/stdout are still connected to my terminal. Is there a simple way to fix that without modifying the app, or is having the app itself disconnect its own stdin/out/err and then go into the background really the only way to do this?
Last edited by Abscissa256; 02-13-2013 at 04:08 PM.
|