daemon scripts

Hello, id like to know how can i do for making my script a daemon. Im not sure, but once , i might read about a "daemon" command. Thats true? Whats it for? It isnt in my man.

Hi ,
By making a script a daemon ,if u mean that u want to run it as a backgroung process the u can run it as :

scriptname &

and if u want the script should run even after the unix session has been logged off then u can use it like :

nohup scriptname &

I hope this makes it clear , if any other way is possible please someone post a reply to this.

cheers !!!

dharmesh

In many ways, daemon is similar to background process without controlling terminal. However, there are more implications for a daemon: almost idle if no request to work on, listen to (actually, waken by via sth else) a request coming from either a TCP/UDP port, or a signal, multithread or multiprocess based application.

So simply saying making a script a daemon may not make sense in many scenarios. Due to the nature of daemon, people rarely uses script to write a daemon application.

Hope it clarifies,

Tom