You can always do a netstat -an|grep LISTEN|grep <portnumber> then "if
found, wait 10 seconds" and try again before starting.
Might not be the nicest solution , but could work for you.

Eric

-----Original Message-----
From: hlds_linux-boun...@list.valvesoftware.com
[mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Michael K.
Gosvig
Sent: zondag 27 juni 2010 2:50
To: 'Half-Life dedicated Linux server mailing list'
Subject: Re: [hlds_linux] New Source server takes a random port

No luck with "-hostport" instead of "-port"

-----Oprindelig meddelelse-----
Fra: hlds_linux-boun...@list.valvesoftware.com
[mailto:hlds_linux-boun...@list.valvesoftware.com] På vegne af Cc2iscooL
Sendt: 27. juni 2010 02:38
Til: Half-Life dedicated Linux server mailing list
Emne: Re: [hlds_linux] New Source server takes a random port

Yes but the ports shouldn't be in use if they're restarting. Maybe try
adding some delays to your reboot scripts so the daemon has a chance to shut
down and a check to see if the process is closed before starting up a new
server.

On Sat, Jun 26, 2010 at 7:27 PM, Michael K. Gosvig
<m...@michaelgosvig.dk>wrote:

> The problem is, that we are an official Gameserver provider, so when 
> our servers restart in the morning, som servers are faster than 
> others, it depends on how many mods the customer has installed.
>
> That why we loved the way the old engine worked, if it could not get 
> the port, written in the command line, it would not start. But the new 
> Source Engine, just takes a random port to start on. It's seams like 
> the server sometimes ignores the "-port xxxxx" in the command line.
>
> Michael
>
> -----Oprindelig meddelelse-----
> Fra: hlds_linux-boun...@list.valvesoftware.com
> [mailto:hlds_linux-boun...@list.valvesoftware.com] På vegne af Eric 
> Riemers
> Sendt: 27. juni 2010 01:51
> Til: 'Half-Life dedicated Linux server mailing list'
> Emne: Re: [hlds_linux] New Source server takes a random port
>
>
> If it cant get it's own, I would look at that problem first.
>
> If you did a restart and it changed port after that, try waiting some 
> time before starting up again, perhaps the process is keeping the port 
> in use for a little while (rare conditions, but could occur)
>
> Eric
> -----Original Message-----
> From: hlds_linux-boun...@list.valvesoftware.com
> [mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of 
> m...@michaelgosvig.dk
> Sent: zondag 27 juni 2010 1:28
> To: hlds_linux@list.valvesoftware.com
> Subject: [hlds_linux] New Source server takes a random port
>
> Hi.
>
> After the new update to source, we have been having som problems whit 
> our servers.
>
> The new engine takes a random port, if i can't get it's own. Thats a 
> major problem for us, as we host a lot af serveres, an when a server 
> take a port that it should not have, the another server, can't start on
the right one.
>
> In our start command line we uses the "-port xxxxx" but it's still 
> able to take other ports. Is there any way to lock the new source 
> server to only one port, as the old server engine?
>
> Best Regards
> Michael
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, 
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, 
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, 
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to