Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Dec 04, 2003 2:07 pm 
Offline
Senior Newbie
User avatar

Joined: Tue Dec 02, 2003 1:26 pm
Posts: 16
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


Top
   
 Post subject:
PostPosted: Thu Dec 04, 2003 2:30 pm 
Offline
Senior Member
User avatar

Joined: Mon Jun 23, 2003 1:25 pm
Posts: 260
Hi,

Run the programs as a daemon

> command &

Adding the & to the end starts the process as a daemon.

Adam


Top
   
 Post subject:
PostPosted: Thu Dec 04, 2003 2:43 pm 
Offline
Linode Staff
User avatar

Joined: Fri Oct 17, 2003 12:38 am
Posts: 287
Location: Dr Wierd's Lab, South Jersey Shore
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.


Top
   
PostPosted: Thu Dec 04, 2003 2:44 pm 
Offline
Senior Member
User avatar

Joined: Sun Nov 23, 2003 1:40 pm
Posts: 79
Website: http://www.whitehouse.gov/history/presidents/bc42.html
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/ge ... -init.html

Highly helpful and easy to read.

Bill Clinton


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group