Forum
To Lethal Zone admins
Created 12th August 2013 @ 01:24
Add A Reply Pages: « Previous 1 2
Quoted from MightyMe
“Server Crontab” (1.0.1.2) by dubbeh
http://forums.alliedmods.net/archive/index.php/t-60046.html
The link u gave has no download: http://forums.alliedmods.net/showthread.php?t=60046
This is from 2007 though, might not work.
I can use that in combination with https://forums.alliedmods.net/showthread.php?p=1542241 to inform the players.
I daily reboot our servers around 07:00 in the morning, what would be a good time to restart it again? 17:00? I just rather not restart when a server is at its peak. So i am just asking ;)
Still a custom vote to restart it would be better since i dont always here people complain, just now and then. (which is usually fixed by a restart) but thats my opinion. I dont play mge 24/7 ;p
p.s. the crontab plugin, there is also another out there which works just fine though. (used it in the past)
Last edited by snelvuur,
Just find out what times the NE server restarted and do the same.
Also you guys are really over complicating this. You can just wrap screen session in a shell script and have a regular cron job do the restart.
script 1: start server inside screen session, write screen session PID to file
script 2: Read Process ID from file, kill it, run script 1
Cronjob script 2 to run 2-4 times a day.
Sorted.
Last edited by Skyride,
I don’t know how often it needs to be restart to make it okay, I would try every 6 or 8 hours (NE did it every 6 hours) with one of the restarts at 18cet to have it ready for the evening.
Last edited by Koeitje,
http://pastie.org/private/sbz7yre0c12gkwimtsula
I’ve been using this one (upstart script), just mod it to your needs regarding OPTS and paths and user and what not. It should take care of the PID handling etc.
This is for rpm based distros (CENTOS, RHEL, Fedora) which tend to have the older 0.6.x upstart. For Ubuntu and Debian the script is a bit simpler (as they have newer upstart with some fancy new stanzas) but haven’t been arsed to write one yet.
put that in /etc/init and after that you should be able to do “start tf2server” “stop tf2server” “restart tf2server”
So after that the next step is to make a cronjob run “restart tf2server” every 6-12 hours or whatever you want.
Last edited by xzr,
I never tried upstart though. I have my own script (http://pastebin.com/5u5dwiVZ) not really finished yet, but also easy to make new server on the fly. I’ll try and put the upstart in there too (for the added benefit) will take me some time to whip it together and sure it can be done simpler and all, but i rather do it good then sloppy. Too much servers to keep track off.
Is _quit / _restart still working after that steam pipeline thing?
If so, you could use rubycon https://github.com/nTraum/rubycon instead of the PID / screen hassle and wrap it in a cronjob. Probably easier. :)
Last edited by nTraum,
I’ll try and adapt the crontab one with a proper shutdown which also alerts the players online. Bit busy this week still, i suppose i can have this done next week.
We are getting nonlaggy lethal zone servers? yayyyyy
Please guys, help snelvuur as much as you can!
Last edited by Setlet,
Has the server been moved to somewhere else? I have 80 ping there :/
The clipping on this version of the MGE map is really bad. Maybe there is a newer or older version available that has less issues?
Quoted from Koeitje
Please make MGE #1 restart more often, it’s always extremely laggy later in the evening.
Restarts and map reloads won’t help Laggy Zone and most of the other MGE/DM etc. servers. It’s because of hosting 50 servers when their machines can hold, for example, 30 or so (server overload). That’s why they have warps, lags and such. Just accept it and play somewhere else, when people actually prefer quality over quantity.
Quoted from Koeitje
[…]
Restarting daily isn’t enough. The Nervous Energy MGE server is much better because it auto restarts every 6 hours. Too bad it passworded these days (maybe by mistake?).
actually, we restart it once a day, but we do a map reload every 6 hours ;)
(it was passworded because it needed updated and set up again; this has been done)
Add A Reply Pages: « Previous 1 2