Raised This Month: $ Target: $400
 0% 

SRCDS Auto Restart Broken with sourcemod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wazzgod
Member
Join Date: Oct 2005
Location: Home
Old 09-14-2010 , 10:28   SRCDS Auto Restart Broken with sourcemod
Reply With Quote #1

Ok.

Here are my scripts *they work flawless without sourcemod enabled*

They are just restart scripts for when the server crashes.
They work well with other mods enabled but not sourcemod.

I have tryed other servers without zombiemod and just sourcemod enabled and i get the same error.

Dont pay much attention to the scripts.
because you can take those out of the equation by

cd /WazzGame/27015/orangebox/

screen -d -m -S srcds27015 ./srcds_run -console -game cstrike +maxplayers 32 +ip 96.251.47.8 -tickrate 100 +port 27015 +map zm_lila_panic +exec server.cfg"

and just running srcds like normal.
because srcds has a restart feature built in *at least in linux it does*



Code:
#!/bin/sh
#

init() {
    # Sets the variables
    SRCDS_EXE_DIRECTORY="/WazzGame/27015/orangebox/"
    SRCDS_EXE="./srcds_run"
    TIMEOUT=5
    SRCDS_EXE_PARMS="-console -game cstrike +maxplayers 32 +ip 96.251.47.8 -tickrate 100 +port 27015 +map zm_lila_panic +exec server.cfg"
}
    
run() {
    # Runs the server and restarts on crash
    echo "Server will AUTO-RESTART on crash"
    
    #loop forever
    while true
    do
    # Run the server
    cd $SRCDS_EXE_DIRECTORY
    $SRCDS_EXE $SRCDS_EXE_PARMS

    # Don't Lag The Box :(
    sleep $TIMEOUT
    done
}


# Initialise
init $*

# Run
run

# Quit normally
quit 0
And the init.d service

Code:
#!/bin/bash
# chkconfig: 2345 10 90
# description: srcds27035



# Path to script
SCRIPT_EXE="/WazzGame/run_scripts/srcds27015"

# Screen Name
SCREEN_NAME="srcds27015"


case "$1" in

start)
if screen -ls |grep $SCREEN_NAME
    then
        echo "$SCREEN_NAME is up"
    else
        screen -d -m -S $SCREEN_NAME $SCRIPT_EXE
        echo "$SCREEN_NAME Starting..."
fi
;;

stop)
if screen -ls |grep $SCREEN_NAME
    then
        echo "Stopping $SCREEN_NAME"
        kill `screen -ls |grep $SCREEN_NAME |awk -F . '{print $1}'|awk '{print $1}'`
        echo "Done..."
    else
        echo "$SCREEN_NAME is down"
fi
;;

restart)

if screen -ls |grep $SCREEN_NAME
    then
        echo "Stopping $SCREEN_NAME"
        kill `screen -ls |grep $SCREEN_NAME |awk -F . '{print $1}'|awk '{print $1}'`
        echo "Done..."
    else
        echo "$SCREEN_NAME is down"
fi
echo "Starting $SCREEN_NAME"
screen -d -m -S $SCREEN_NAME $SCRIPT_EXE
echo "Done..."
;;

status)
# Check whether there's a "srcds" process
ps aux | grep -v grep | grep srcds_linux > /dev/null
CHECK=$?
[ $CHECK -eq 0 ] && echo "SRCDS is UP" || echo "$SCREEN_NAME is DOWN"
;;
 
*)
echo "Usage: $0 {start|stop|status|restart}"
exit 1
;;
esac
exit 0
So ya lets get to it


[root@linux1 /]# service srcds27015 restart
4928.srcds27015 (Detached)
Stopping srcds27015
Done...
Starting srcds27015
Done...
[root@linux1 /]#



[root@linux1 /]# screen -list
There is a screen on:
4955.srcds27015 (Detached)
1 Socket in /var/run/screen/S-root.

[root@linux1 /]# screen -x 4955



So ya then it all works normal.

So i go to type quit in console *or you can rcon quit*
And it does the following all normal.
this is without sourcemod enabled / loaded

quit
L 09/14/2010 - 07:05:51: [META] Loaded 0 plugins (1 already loaded)
L 09/14/2010 - 07:05:51: server_message: "quit"
CAsyncIOManager: 0 threads terminating. 0 reads, 0 writes, 0 deferrals.
CAsyncIOManager: 0 single object sleeps, 0 multi object sleeps
CAsyncIOManager: 0 single object alertable sleeps, 0 multi object alertable sleeps
L 09/14/2010 - 07:05:51: Log file closed
L 09/14/2010 - 07:05:51: server_message: "restart"
Reference Count for Material ___error (10) != 0
Reference Count for Material __depthwrite00 (1) != 0
Reference Count for Material __depthwrite01 (1) != 0
Reference Count for Material __depthwrite10 (1) != 0
Reference Count for Material __depthwrite11 (1) != 0
Reference Count for Material ___glintbuildmaterial (1) != 0
Reference Count for Material __particlesdepthwrite (1) != 0
Reference Count for Material particle/muzzleflash/noisecloud1 (6) != 0
Tue Sep 14 07:05:51 PDT 2010: Server Quit


And the server restarts and works like normal.


Now this one here is with sourcemod enabled.


Connection to Steam servers successful.
VAC secure mode is activated.
meta list
Listing 6 plugins:
[01] SourceMod (1.3.4) by AlliedModders LLC
[02] ZombieMod (3.0.0 B) by c0ldfyr3
[03] CS:S Tools (1.3.4) by AlliedModders LLC
[04] BinTools (1.3.4) by AlliedModders LLC
[05] SDK Tools (1.3.4) by AlliedModders LLC
[06] SDK Hooks (1.3.0) by Tsunami
quit
L 09/14/2010 - 07:07:40: [META] Loaded 0 plugins (2 already loaded)
L 09/14/2010 - 07:07:40: server_message: "quit"
CAsyncIOManager: 0 threads terminating. 0 reads, 0 writes, 0 deferrals.
CAsyncIOManager: 0 single object sleeps, 0 multi object sleeps
CAsyncIOManager: 0 single object alertable sleeps, 0 multi object alertable sleeps
L 09/14/2010 - 07:07:40: Log file closed
L 09/14/2010 - 07:07:40: server_message: "restart"


the server does NOT restart and come backup
just kinda freezes there at "L 09/14/2010 - 07:07:40: server_message: "restart""

Im not sure why its hanging but its getting on my nerves...

Once the server gets "Server Quit"

it reboots.

and with sourcemod enabled it doesn't get that far and just stays stuck there at server_message: "restart""



Server Info
CENT OS 5.5 32 Bit

And some console out put here
version - plugins - ect



meta version
Metamod:Source version 1.8.3
Build ID: 732:96932fe375a5
Loaded As: Valve Server Plugin
Compiled on: Jul 18 2010
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/
meta list
Listing 6 plugins:
[01] SourceMod (1.3.4) by AlliedModders LLC
[02] ZombieMod (3.0.0 B) by c0ldfyr3
[03] CS:S Tools (1.3.4) by AlliedModders LLC
[04] BinTools (1.3.4) by AlliedModders LLC
[05] SDK Tools (1.3.4) by AlliedModders LLC
[06] SDK Hooks (1.3.0) by Tsunami
sm version
SourceMod Version Information:
SourceMod Version: 1.3.4
SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.3.4)
SourcePawn API: v1 = 4, v2 = 3
Compiled on: Jul 18 2010 01:01:40
Build ID: 3013:4d6afc42522c
http://www.sourcemod.net/
sm plugins list
[SM] Listing 37 plugins:
01 "WazzGame Basic Votes" (1.2.4) by AlliedModders LLC
02 "Admin File Reader" (1.3.4-dev) by AlliedModders LLC
03 "WazzGame FloodCheck" (2.00) by WazzGame
04 "WazzGame Blink" (1.0) by WazzGame
05 "Client Preferences" (1.3.4-dev) by AlliedModders LLC
06 "Dissolve" (1.0.0.1) by L. Duke
07 "Map Nominations" (1.3.4-dev) by AlliedModders LLC
08 "WazzGame Admin Menu" (1.3.4-dev) by AlliedModders LLC
09 "WazzGame RCON Lock" (2.0) by WazzGame
10 "WazzGame Fun Votes" (1.3.2) by AlliedModders LLC
11 "Fun Commands" (1.3.4-dev) by AlliedModders LLC
12 "Spray Tracer" (5. by Nican132, CptMoore, Lebson506th
13 "Connect Announce" (1.1) by Arg!
14 "Player Commands" (1.3.4-dev) by AlliedModders LLC
15 "WazzGame Admin_Jetpack3" (3) by Jon
16 "Basic Info Triggers" (1.3.4-dev) by AlliedModders LLC
17 "Advertisements" (0.5.5) by Tsunami
18 "WazzGame Super" (2.6) by WazzGame
19 "WazzGame MapChooser" (1.2.4) by AlliedModders LLC
20 "Nextmap" (1.3.4-dev) by AlliedModders LLC
21 "WazzGame Basic Chat" (1.3.4-dev) by AlliedModders LLC
22 "Admin ESP" (1.1.0) by KawMAN
23 "Ban disconnected players" (1.03) by mad_hamster
24 "Basic Ban Commands" (1.3.4-dev) by AlliedModders LLC
25 "Basic Comm Control" (1.3.4-dev) by AlliedModders LLC
26 "Reserved Slots" (1.3.4-dev) by AlliedModders LLC
27 "Rock The Vote" (1.3.4-dev) by AlliedModders LLC
28 "Admin Help" (1.3.4-dev) by AlliedModders LLC
29 "SM Super Menu" (0.5) by pRED*
30 "WazzGame Ads" (1.1) by WazzGame
31 "Anti-Flood" (1.3.4-dev) by AlliedModders LLC
32 "Sound Commands" (1.3.4-dev) by AlliedModders LLC
33 "WG Spawn Protection" (1.0.0) by WazzGame
34 "Basic Commands" (1.3.4-dev) by AlliedModders LLC
35 "Stop HintText Sound" (1.0.0) by Tauphi, exvel
36 "Spray Pruning" (1.0.0.1) by sslice
37 "Players Votes" (1.5.0) by The Resident, pZv!


If you notice a lot of "WazzGame" plugins its because i mod a lot of the plugins and then rename them to know which ones i modded.


So can anyone here got any ideas?
Anyone help me out here?
Thx.
__________________
People Who Think They Know Everything
Are Very Irritating To Those Of Us Who Do.

Last edited by wazzgod; 09-14-2010 at 10:30.
wazzgod is offline
bobbobagan
SourceMod Donor
Join Date: May 2007
Location: New Zealand
Old 09-14-2010 , 12:34   Re: SRCDS Auto Restart Broken with sourcemod
Reply With Quote #2

tl;dr. Have you tried starting the server not using your script to ensure the server is actually starting when SourceMod is enabled?
__________________
bobbobagan is offline
Send a message via Skype™ to bobbobagan
wazzgod
Member
Join Date: Oct 2005
Location: Home
Old 09-14-2010 , 23:05   Re: SRCDS Auto Restart Broken with sourcemod
Reply With Quote #3

*cough*
Quote:
Dont pay much attention to the scripts.
because you can take those out of the equation by

cd /WazzGame/27015/orangebox/

screen -d -m -S srcds27015 ./srcds_run -console -game cstrike +maxplayers 32 +ip 96.251.47.8 -tickrate 100 +port 27015 +map zm_lila_panic +exec server.cfg"
Of course i have.
__________________
People Who Think They Know Everything
Are Very Irritating To Those Of Us Who Do.
wazzgod is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 09-15-2010 , 12:17   Re: SRCDS Auto Restart Broken with sourcemod
Reply With Quote #4

If it's any consolation, my server hasn't automatically come back after a crash in ages (since the OB swap). I've never tried running a vanilla server then running 'quit', though.

09 "WazzGame RCON Lock" (2.0) by WazzGame

The old Rcon Locker hooks quit, doesn't it?
KyleS is offline
wazzgod
Member
Join Date: Oct 2005
Location: Home
Old 09-15-2010 , 20:06   Re: SRCDS Auto Restart Broken with sourcemod
Reply With Quote #5

i would of never though about that.

I have disabled rcon lock.
and wala everything is working great.

I will be contacting developer of RCON LOCK
Letting him know this.


Use my script and init.d script
you server will restart just fine
__________________
People Who Think They Know Everything
Are Very Irritating To Those Of Us Who Do.
wazzgod is offline
NouveauJoueur
SourceMod Donor
Join Date: May 2009
Old 09-16-2010 , 02:57   Re: SRCDS Auto Restart Broken with sourcemod
Reply With Quote #6

Quote:
Originally Posted by wazzgod View Post
I will be contacting developer of RCON LOCK
Letting him know this.

Code:
09 "WazzGame RCON Lock" (2.0) by WazzGame
Rcon locker / exploit fix

by devicenull


Code:
04 "WazzGame Blink" (1.0) by WazzGame
Blink (Self-Teleport) v1.1 by Pinkfairie



And look at all other WazzGame's plugins ...
You don't have the right to steal credits like that, I think you should really get banned ...
__________________
NouveauJoueur is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-16-2010 , 06:46   Re: SRCDS Auto Restart Broken with sourcemod
Reply With Quote #7

Quote:
Originally Posted by wazzgod View Post
...
If you notice a lot of "WazzGame" plugins its because i mod a lot of the plugins and then rename them to know which ones i modded.
Why plugin with same name have other author ?


*edit
Ou I didin't notice, plugin with almost same name
Quote:
03 "WazzGame FloodCheck" (2.00) by WazzGame
Bacardi is offline
wazzgod
Member
Join Date: Oct 2005
Location: Home
Old 09-16-2010 , 20:33   Re: SRCDS Auto Restart Broken with sourcemod
Reply With Quote #8

Like i posted before.
I mod many of my plugins.
__________________
People Who Think They Know Everything
Are Very Irritating To Those Of Us Who Do.
wazzgod is offline
bobdole
SourceMod Donor
Join Date: May 2008
Location: Houston,Texas
Old 09-16-2010 , 21:04   Re: SRCDS Auto Restart Broken with sourcemod
Reply With Quote #9

and you have also modded rcon lock, seeing as my servers restart fine with it, it must be one of your "mods"
bobdole is offline
NouveauJoueur
SourceMod Donor
Join Date: May 2009
Old 09-17-2010 , 02:47   Re: SRCDS Auto Restart Broken with sourcemod
Reply With Quote #10

It doesn't give you the right to steal credits.
It's not because you add a command to be blocked in rcon locker that you have to take full credits from it. It's not because you modify admin customs flags of a super admin / commands / blink plugins that you have to take full credits too ...
__________________
NouveauJoueur is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode