[hlds] Why does my TF2 server start twice?

2012-02-10 Thread Brian
Hi,

I recently installed SRCDS on my server. I followed this guide:
http://stevenbenner.com/2010/11/how-to-set-up-a-team-fortress-2-dedicated-server-on-ubuntu/

However, when I use his method of running srcds as a service in
/etc/init.d/, my server starts two instances... one on 20175 and
subsequently another on 27016, in separate screen sessions.

I thought it might be this section, which seems to repeat itself:

su $SRCDS_USER -l -c screen -d -m -S $NAME $DAEMON $PARAMS
  screen -d -m -S $NAME $DAEMON $PARAMS


But removing the second line ends up making the server not start at all..

Advice appreciated.

Brian
___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds


Re: [hlds] Why does my TF2 server start twice?

2012-02-10 Thread Andrew DeMerse
Starting a server that way isn't the best of ideas. Instead of starting it
as a service, why not just start it as a normal screen from a
non-privileged user? That way it doesn't require root to start/stop the
process.

Also, if you read the comments on that site, it mentions that it starts 2
instances, and how to fix it.

*I had the issue as well, I am no expert but my solution was to comment ‘#’
out line 19*
*
*
*replace ” screen -d -m -S $NAME $DAEMON $PARAMS ” with “# screen -d -m -S
$NAME $DAEMON $PARAMS ” and I no longer have 2 instances.*

The guide also has a few inaccuracies, such as saying that srcds won't run
on 64 bit architecture. These days, I'd say the right way would be to
have a dedicated non-privileged user for the tf2 server, and have nemrun to
keep the server running and up to date.

http://nephyrin.net/tools/nemrun/latest/

On Fri, Feb 10, 2012 at 3:11 PM, Brian br...@doublejump.eu wrote:

 Hi,

 I recently installed SRCDS on my server. I followed this guide:
 http://stevenbenner.com/2010/11/how-to-set-up-a-team-fortress-2-dedicated-server-on-ubuntu/

 However, when I use his method of running srcds as a service in
 /etc/init.d/, my server starts two instances... one on 20175 and
 subsequently another on 27016, in separate screen sessions.

 I thought it might be this section, which seems to repeat itself:

 su $SRCDS_USER -l -c screen -d -m -S $NAME $DAEMON $PARAMS
   screen -d -m -S $NAME $DAEMON $PARAMS


 But removing the second line ends up making the server not start at all..

 Advice appreciated.

 Brian


 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds


Re: [hlds] Why does my TF2 server start twice?

2012-02-10 Thread Portek
Hi, remove the second screen command, and everything will by fine.

Leave only that one:

su $SRCDS_USER -l -c screen -d -m -S $NAME $DAEMON $PARAMS


2012/2/10 Brian br...@doublejump.eu

 Hi,

 I recently installed SRCDS on my server. I followed this guide:
 http://stevenbenner.com/2010/11/how-to-set-up-a-team-fortress-2-dedicated-server-on-ubuntu/

 However, when I use his method of running srcds as a service in
 /etc/init.d/, my server starts two instances... one on 20175 and
 subsequently another on 27016, in separate screen sessions.

 I thought it might be this section, which seems to repeat itself:

 su $SRCDS_USER -l -c screen -d -m -S $NAME $DAEMON $PARAMS
   screen -d -m -S $NAME $DAEMON $PARAMS


 But removing the second line ends up making the server not start at all..

 Advice appreciated.

 Brian


 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds


Re: [hlds] Why does my TF2 server start twice?

2012-02-10 Thread Brian
Thanks for the responses, guys.

On Fri, Feb 10, 2012 at 9:13 PM, Portek ad...@portek.net.pl wrote:

 Hi, remove the second screen command, and everything will by fine.

 Leave only that one:

 su $SRCDS_USER -l -c screen -d -m -S $NAME $DAEMON $PARAMS


 2012/2/10 Brian br...@doublejump.eu

 Hi,

 I recently installed SRCDS on my server. I followed this guide:
 http://stevenbenner.com/2010/11/how-to-set-up-a-team-fortress-2-dedicated-server-on-ubuntu/

 However, when I use his method of running srcds as a service in
 /etc/init.d/, my server starts two instances... one on 20175 and
 subsequently another on 27016, in separate screen sessions.

 I thought it might be this section, which seems to repeat itself:

 su $SRCDS_USER -l -c screen -d -m -S $NAME $DAEMON $PARAMS
   screen -d -m -S $NAME $DAEMON $PARAMS


 But removing the second line ends up making the server not start at all..

 Advice appreciated.

 Brian


 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds



 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds


Re: [hlds] Why does my TF2 server start twice?

2012-02-10 Thread Ross Bemrose
Ubuntu's crontab supports the @reboot flag, so you can use crontab as 
your server's user to start it every time the machine boots.


I actually use this along with nemrun.

On 2/10/2012 3:11 PM, Brian wrote:

Hi,

I recently installed SRCDS on my server. I followed this guide: 
http://stevenbenner.com/2010/11/how-to-set-up-a-team-fortress-2-dedicated-server-on-ubuntu/


However, when I use his method of running srcds as a service in 
/etc/init.d/, my server starts two instances... one on 20175 and 
subsequently another on 27016, in separate screen sessions.


I thought it might be this section, which seems to repeat itself:

su $SRCDS_USER -l -c screen -d -m -S $NAME $DAEMON $PARAMS
   screen -d -m -S $NAME $DAEMON $PARAMS


But removing the second line ends up making the server not start at all..

Advice appreciated.

Brian



___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds


Re: [hlds] Why does my TF2 server start twice?

2012-02-10 Thread Gavin Langdon
Oh wow, now that sounds useful. Thanks for that advice! I was having
trouble figuring out how to properly start stuff like our hlstats.
On Feb 10, 2012 4:27 PM, Ross Bemrose rbemr...@vgmusic.com wrote:

  Ubuntu's crontab supports the @reboot flag, so you can use crontab as
 your server's user to start it every time the machine boots.

 I actually use this along with nemrun.

 On 2/10/2012 3:11 PM, Brian wrote:

 Hi,

 I recently installed SRCDS on my server. I followed this guide:
 http://stevenbenner.com/2010/11/how-to-set-up-a-team-fortress-2-dedicated-server-on-ubuntu/

 However, when I use his method of running srcds as a service in
 /etc/init.d/, my server starts two instances... one on 20175 and
 subsequently another on 27016, in separate screen sessions.

 I thought it might be this section, which seems to repeat itself:

 su $SRCDS_USER -l -c screen -d -m -S $NAME $DAEMON $PARAMS
   screen -d -m -S $NAME $DAEMON $PARAMS



 But removing the second line ends up making the server not start at all..

 Advice appreciated.

 Brian



 ___
 To unsubscribe, edit your list preferences, or view the list archives, please 
 visit:https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds



 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds


Re: [hlds] Why does my TF2 server start twice?

2012-02-10 Thread Brad Taylor
Anyone know how configure a bat file to check for an update as soon as it's
released, setup with task scheduler?

On Fri, Feb 10, 2012 at 4:09 PM, Andrew DeMerse ademe...@gmail.com wrote:

 Starting a server that way isn't the best of ideas. Instead of starting it
 as a service, why not just start it as a normal screen from a
 non-privileged user? That way it doesn't require root to start/stop the
 process.

 Also, if you read the comments on that site, it mentions that it starts 2
 instances, and how to fix it.

 *I had the issue as well, I am no expert but my solution was to comment
 ‘#’ out line 19*
 *
 *
 *replace ” screen -d -m -S $NAME $DAEMON $PARAMS ” with “# screen -d -m
 -S $NAME $DAEMON $PARAMS ” and I no longer have 2 instances.*

 The guide also has a few inaccuracies, such as saying that srcds won't run
 on 64 bit architecture. These days, I'd say the right way would be to
 have a dedicated non-privileged user for the tf2 server, and have nemrun to
 keep the server running and up to date.

 http://nephyrin.net/tools/nemrun/latest/

 On Fri, Feb 10, 2012 at 3:11 PM, Brian br...@doublejump.eu wrote:

 Hi,

 I recently installed SRCDS on my server. I followed this guide:
 http://stevenbenner.com/2010/11/how-to-set-up-a-team-fortress-2-dedicated-server-on-ubuntu/

 However, when I use his method of running srcds as a service in
 /etc/init.d/, my server starts two instances... one on 20175 and
 subsequently another on 27016, in separate screen sessions.

 I thought it might be this section, which seems to repeat itself:

 su $SRCDS_USER -l -c screen -d -m -S $NAME $DAEMON $PARAMS
   screen -d -m -S $NAME $DAEMON $PARAMS


 But removing the second line ends up making the server not start at all..

 Advice appreciated.

 Brian


 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds



 ___
 To unsubscribe, edit your list preferences, or view the list archives,
 please visit:
 https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds


___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds