| Author |
Message |
Griswald
Joined: 02 Dec 2003
Posts: 16
|
| Posted: Thu Dec 04, 2003 1:07 pm Post subject: background processes close down on exit? |
|
|
I've noticed in Mandrake that background process close down upon exitting, and since I am planning on running a small muds business, I don't want the muds to be shutdown as soon as the user logs out of the shell.... Anyone know how to fix this?
There are usually two processes. The mud process, and a "startup" csh script.
-- Griswald |
|
| Back to top |
|
adamgent
Joined: 23 Jun 2003
Posts: 261
|
| Posted: Thu Dec 04, 2003 1:30 pm Post subject: |
|
|
Hi,
Run the programs as a daemon
> command &
Adding the & to the end starts the process as a daemon.
Adam |
|
| Back to top |
|
mikegrb
Joined: 16 Oct 2003
Posts: 266
Location: Dr Wierd's Lab, South Jersey Shore
|
| Posted: Thu Dec 04, 2003 1:43 pm Post subject: |
|
|
Starting with & at the end normally just puts the program in the background imidiatley. Depending on the shell, the program will most likely still be closed on exit. What you really want to do is combine this with nohup.
ala: nohup startupscript.csh &
This will start it in the background and prevent it from exiting on logout. Starting as above it will append any output to STDOUT/STDERR to a file nohup.out in the current directory. Check the nohup man page for more info. |
|
| Back to top |
|
Bill Clinton
Joined: 23 Nov 2003
Posts: 79
|
| Posted: Thu Dec 04, 2003 1:44 pm Post subject: Re: background processes close down on exit? |
|
|
Griswald wrote:
There are usually two processes. The mud process, and a "startup" csh script.
You may want to read ...
Mandrake Generic Startup Init Script
http://opencurve.org/~sunny/mandrake/generic-startup-init.html
Highly helpful and easy to read.
Bill Clinton |
|
| Back to top |
|
| |