Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ ROM
➜ Running the server
➜ Running Rom in Linux as a background process
Running Rom in Linux as a background process
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Akumafire
(8 posts) Bio
|
Date
| Sun 09 Nov 2003 05:11 AM (UTC) |
Message
| I'm using mandrake linux, and I'm running rom on it, except that rom is running in a shell window, so that if i close the shell window rom will close as well, how do I run rom such that it would be independent of the shell? I tried the start script, but it wasn't working. I took a peek in it and didn't understand the reason for the while loop. | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Sun 09 Nov 2003 09:38 PM (UTC) |
Message
| The while loop is to restart the MUD if it was rebooted or crashed. It loops until it finds the shutdown file.
To have the script run even when you log off, you need to use the nohup command. Here is what I use:
nohup ./startup 5432 > nohup.out 2>&1 &
You could probably use something similar, adapting of course to your startup filename and your port. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #2 on Tue 11 Nov 2003 09:30 PM (UTC) |
Message
| The really simple approach is simply to "background" the process. Since you can't get the startup script to work, try adding "&" to your command line, that tells Unix to put the process in the background.
eg.
Instead of:
cd area
../src/rom
Type:
cd area
../src/rom &
You may also want to redirect output so it doesn't spam your screen. eg.
../src/rom >& ~/mylog.txt & |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
12,069 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top