Click to See Complete Forum and Search --> : Don't want to log in every time...


airedale
01-07-2001, 02:04 AM
I am going to be running a server and I am not always going to be around it... so if it were to crash, I would just like someone to be able to restart the computer and let it log in and do all that other fun stuff on its own. It is going to be a game server and I would like to have that execute too, how would I write a script or something for the computer to just boot up and start up the the apache web server and the game server for me just by turning the machine on?

Strike
01-07-2001, 02:33 AM
You don't have to log in to do any of this, so logging in automatically is a bad idea (not to mention I don't know how you'd do it off the top of my head). You need to snoop around here and other sites about info on "startup scripts" for your particular distribution (Debian, RedHat, SuSE, Mandrake, Slackware, etc). It's pretty different for many of them, so it'd be a lot to post here. Or you can post your distro and people will probably post helpful links (which is not to say you shouldn't search on your own, of course).

airedale
01-07-2001, 01:31 PM
My distro is red hat 7.0, and just to make sure, my linux box would be able to be a router and a web server and a game server without me logging in?
If so, that is great! I guess I am still in that windows mindset http://www.linuxnewbie.org/ubb/frown.gif

Well any help would be very much appreciated!

Pierre Lambion
01-07-2001, 03:40 PM
You could launch the necessary service from rc.local or from inetd.conf.
No need to login.

P.