PDA

View Full Version : Server Startup Question


Restin
11-02-2004, 19:53
I was wondering if its possible to download a script or something that will make TS server automaticlly start when my linux server starts/restarts. I have a linux dedicated server.

Any help is appericated
Thanks.

pim
11-02-2004, 20:37
cron job?

Restin
11-02-2004, 20:54
how do i set it up though ?

Brain
11-02-2004, 22:13
init system

http://www.comptechdoc.org/os/linux/startupman/linux_suinit.html

Philio
13-02-2004, 18:00
I just added:

/home/tss/tss2_rc2/server_linux

to /etc/rc.d/rc.local on Redhat box

pim
13-02-2004, 21:55
Search for crond, I've got it on my fedora, but i'm not near my machine now, so I cant give you any more accurate directions

Basically it's a scheduler, but you can also designate processes that need to be started at bootup

Brain
13-02-2004, 22:16
cron would be one way, but i think it's far easier and more elegant to use the init system. Usually Linux distribution would have a directory /etc/rc.local
In simple terms: It's like the Autostart group in Windoze. Whatever you put in there is started.

pim
13-02-2004, 22:40
I do admit I am a linux n00b. trying to correct that desperately, learning every day. Thanks for the tip Brain

Restin
15-02-2004, 01:18
I just added:

/home/tss/tss2_rc2/server_linux

to /etc/rc.d/rc.local on Redhat box


Philio, i tired that, but it didnt work?
my server is the the /home/wwwemse/tss/

Philio
16-02-2004, 14:53
Originally posted by Restin



Philio, i tired that, but it didnt work?
my server is the the /home/wwwemse/tss/

Thats wierd, if the path is correct it should start no probs. I'm assuming you dont need to change the permissions on the folder (we have both created a separate user account to use teamspeak it looks like) as I think everything started on boot is effectivly run by root. It may be worth checking you have a new line at the end of rc.local- linux can be a bit funny about some config files without a new line at the end on occasions. I'm afraid I dont really know what else to suggest other than double check the path you entered into rc.local and maybe try running the server from path / as root using /home/wwwemse/tss/etc etc as a test. I've never had a problem myself with rc.local in the past unless I put i the wrong syntax or path or something.