[Debian]How to turn a command call into a init.d service?

Up +1 Down

Where can I find a tutorial/help on how to turn a command call into a init.d service? I have a node.js server that starts by a simple command line call and is terminated by hitting Ctrl+C, but I want it to start at startupt, and have some nice starting/stopping/status abilities a la Apache/HTTPD. Is it doable?

 

*startupt = system boot/restart

KettleCooked's picture
20112
1 answer
Up +1 Down

 

exactly as myshell said... put the startup line in as nohup node.js &  1>&2 > /some/logfile

 
's picture
Anonymous
1
Post your answer (Sign in)
(If you're a human, don't change the following field)
Your first name.
The content of this field is kept private and will not be shown publicly.
Cancel