SRCDS Steam group


Automatic reboot
#1
Aloha.
Does anyone know how to reboot a linuxmachine automatically, like with a cheme.(chron)
(if i would like it to reboot every morning or so.)
Reply
#2
Linux server machine should be restarted only in one case, changing the kernel.
Kuznia Counter-Strike

http://kuznia.sprinter.eu.org/
Reply
#3
Not really.
[Image: userbar_wow.jpg]
starting 9/24/2006 if your problem has been solved please edit your first post and add [solved] to the begining of the title. Thanks.
Reply
#4
hmm.
we have a publicserver, running hlds, 1.6.
The server is popular, so its allmost constantly full.
After av few days of up-time, it gets laggy though.
We do a manual reboot, and thigs are fine again.

The server (Slackware) has 1024 mb ram, but ther'e not ECC, wich i believe is the problem.

Any tips on rebooting?
Reply
#5
I guess this'll work, but urghhhh **wince**


restart.sh:
Code:
#!/bin/sh
#
shutdown -r -t time now


Put that in /etc/cron.daily and it will do the trick in a pretty ugly way
Reply
#6
out of intrest
will that stop the server or restart it.
Like once its shutdown what tells it to come aive again Toungue
Reply
#7
Ninjapimp Wrote:hmm.
we have a publicserver, running hlds, 1.6.
The server is popular, so its allmost constantly full.
After av few days of up-time, it gets laggy though.
We do a manual reboot, and thigs are fine again.

The server (Slackware) has 1024 mb ram, but ther'e not ECC, wich i believe is the problem.

Any tips on rebooting?

If you need to reboot the whole server, then something is seriously wrong. Linux servers usually measure time between reboots in months and sometimes years.

It might be that the CS application is leaking memory. If that's the case, just restart CS. Don't restart the whole server. I routinely restart game server apps nightly for this reason. You should be able to set up a cron job to restart your server daily in the wee hours of the morning.

ECC should never be an issue. ECC exists to catch isolated single-bit RAM errors in data-critical systems like huge banking systems. It was originally there to protect systems from cosmic rays which might toggle a bit in a large system every few months.
Reply
#8
on reboot server machine, how do i made auto start up game server ?
[Image: www.artspace.tk]
Reply
#9
You could add a start script to the services (though I'm not aware of an available one, so you'd have to code it yourself).

If you're using gnome, try opening gnome-session-properties in the terminal and adding the program to the startup applications, though I'm not certain that'd work.
Reply
#10
i will need the script for start up aplication on boot sytem.
[Image: www.artspace.tk]
Reply
#11
This is Linux, not Windows. Let's not band-aid over the problem but actually fix it. Does restarting the CS binary (not the whole server) fix the problem?
Reply
#12
no body talking windows here
i looking for linux start up script
[Image: www.artspace.tk]
Reply
#13
What ScratchMonkey meant was that it would be better just to restart the Steam binary than the Linux machine, as doing that should have no effect that the restarting of the the Steam server would have.

And as far as I'm aware, I can find no Steam/CS server startup scripts. Probably because most people find restarting the binary does the trick, so there is no need for a startup script.
Reply
#14
oh i see
i will keep hunting
if i find any thing i will post here
[Image: www.artspace.tk]
Reply
#15
that's for auto start up application on booting OS.
Quote:/etc/rc.local
just edit rc.local - put whatever comands you want to run at startup there.
[Image: www.artspace.tk]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)