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
➜ SMAUG
➜ Running the server
➜ Smaug as a background process
Smaug as a background process
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Dark_Trunks
Australia (27 posts) Bio
|
Date
| Tue 17 Sep 2002 10:38 PM (UTC) |
Message
| Hi, I was wondering if there is any way to have SMAUG run as a background service under RedHat 7.3. At the moment, whether I run the smaug executable or the startup script, the process ends as soon as I log out of the system. This is quite annoying because I can only telnet into my server and I would like to close the window and still have smaug running.
Thanks in advance for any advice that anyone can provide. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #1 on Tue 17 Sep 2002 10:58 PM (UTC) |
Message
| I presume you are running it as a background process with "&"? I suggest using sudo to run it as another use, so it isn't related to the current process. I have the following lines in my rc.local file:
#
# SMAUG
#
echo 'Starting SMAUG ...'
sudo -u nick sh -c 'cd /home/nick/smaug/src && /home/nick/smaug/src/startup 4000 &'
What this does is "cd" to the smaug src directory and then run the startup shell script.
Since that is in the rc.local file I don't even need to log in at all, it runs when the PC is booted.
This is under OpenBSD, I am not sure what file RedHat uses, but there would be a similar or identically named one. (Try: /etc/rc.d/rc.local). |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Dark_Trunks
Australia (27 posts) Bio
|
Date
| Reply #2 on Wed 18 Sep 2002 12:06 PM (UTC) |
Message
| Great! Worked like a charm. Thanks Nick | 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.
11,095 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top