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.
Running Rom in Linux as a background process
Posted by Akumafire on Sun 09 Nov 2003 05:11 AM — 3 posts, 15,130 views.
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.
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.
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 &
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 &