yozx
06-30-2001, 12:41 AM
I just install RH7.1 and I'm really new to linux. My problem is how can I run something as daemon ( like startup in windows) ? Which file ,Where and how to edit that file ? T :confused:
|
Click to See Complete Forum and Search --> : How to run as a daemon ? yozx 06-30-2001, 12:41 AM I just install RH7.1 and I'm really new to linux. My problem is how can I run something as daemon ( like startup in windows) ? Which file ,Where and how to edit that file ? T :confused: speck 06-30-2001, 03:29 AM If you want to start a program/script/etc and have it execute in the background (daemon,service), type: nohup programname & Of course, if the program is "ls", it will just list the output of the directory and exit. The "nohup" command just means that if you start the program in an xterm and then close the xterm before the program completes, it will continue executing. If you're looking for info about coding a daemon, then you might want to ask in the programming section. Speck speck 06-30-2001, 03:54 AM Hmmm, sorry. Reread your post and I completely missed the question. If you want a program to startup when you start X, edit the ~/.xinitrc file and add something like the following near the top: gkrellm & xterm -g 80x24+0+0 & I have an old modified RH6.2 box and I don't remember the ~/.xinitrc file being installed by default. You can make the file by using any editor (vim, joe, emacs, kedit, gedit, nedit, etc). BTW, the "~/" part of ~/.xinitrc just means to create a file called ".xinitrc" in your home directory (/home/speck). Type "man xinit" for more info about setting the .xinitrc file up. Speck linuxluis 06-30-2001, 10:40 PM From the question, my understand is that you would like to edit a deamon setup. tell it when to start and stop right ? well if so you need to look at the /etc/init.d/rc.d/ in that folder you will see all the scripts that you could edit ... all those scripts are what starts and stop the deamons. if your trying to change the start up you would need to look at the $ chkconfig --list that will show you all the scripts that start up ... good luck let me know if that's what you need. tux :cool: justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |