Re: ADMIN:Autoloading

From: Shawn L. Evans (dorga@MUD.SHADOWWIND.ORG)
Date: 12/09/97


On Tue, 9 Dec 1997, Aaron Miller wrote:

> >I'm a C++ programmer that is starting to mess with Unix and writing
> >Muds.  I'm not an Admin however.  My question is how do I get the
> >CircleMUD to autoload when the Linux server is restarted?
> >
> Depends on your Linux Variant.. try poking around in /etc/rc.d/

Welp, one way is to make a script and run it from crontab...

---<snip>
#!/bin/sh

ps -x > ~mudhomedir/pslist

if ! ( grep -q autorun ~mudhomedir/pslist ); then
        cd ~mudhomedir
        ./autorun &
fi
---<snip>

Then just add something similar to your crontab entry:

---<snip>
0,10,20,30,40,50 * * * * cd ~mudhomedir ; ./scriptfilename >/dev/null 2>&1
---<snip>

       ---=======---   ---=======---
              dorga@ionet.net
       ---=======---   ---=======---


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST