Re: [hlds_linux] srcds_run startscript

2011-01-17 Thread Milton Ngan
: Saturday, January 15, 2011 3:22 PM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] srcds_run startscript First thing: cd $(dirname $0) #is maybe not the best solution Some systems doesn't use default bash for a user. Second thing, the normal srcds_run script uses /bin

Re: [hlds_linux] srcds_run startscript

2011-01-16 Thread Jarkko Mäntylä
On 16.1.2011 1:22, Andre Müller wrote: On some distibutions /bin/sh is a symlink to /bin/bash (Debian), but in example Ubuntu have bourne shell installed. Last time I checked Ubuntu used dash as /bin/sh which is pretty much POSIX compatible. The poor bastards stuck with bourne /bin/sh are

Re: [hlds_linux] srcds_run startscript

2011-01-16 Thread Andre Müller
It's completely unnecessary to do this when the user can just cd to the correct directory himself. Lots of scripts require you to be in the correct directory - try calling 'make' from the wrong location... What does make have to do with starting a srcds? Of course, when you run normally the

Re: [hlds_linux] srcds_run startscript

2011-01-15 Thread Andre Müller
...@list.valvesoftware.com] On Behalf Of Simon Gunton } Sent: Thursday, January 13, 2011 7:17 AM } To: Half-Life dedicated Linux server mailing list } Subject: Re: [hlds_linux] srcds_run startscript } } Its not a valve issue, its how linux works does not matter what file it } is your executing

Re: [hlds_linux] srcds_run startscript

2011-01-15 Thread daniel jokiaho
it. -Original Message- From: hlds_linux-boun...@list.valvesoftware.com [mailto: hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Andre Müller Sent: Friday, January 14, 2011 11:02 AM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] srcds_run startscript Hm, maybe

Re: [hlds_linux] srcds_run startscript

2011-01-15 Thread daniel jokiaho
...@list.valvesoftware.com] On Behalf Of Andre Müller Sent: Friday, January 14, 2011 11:02 AM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] srcds_run startscript Hm, maybe this is a cool new feature. But you can edit the srcds_run yourself. This file doesn't change many times

Re: [hlds_linux] srcds_run startscript

2011-01-15 Thread Ulrich Block
it. -Original Message- From: hlds_linux-boun...@list.valvesoftware.com [mailto: hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Andre Müller Sent: Friday, January 14, 2011 11:02 AM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] srcds_run startscript Hm

Re: [hlds_linux] srcds_run startscript

2011-01-15 Thread daniel jokiaho
: Friday, January 14, 2011 11:02 AM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] srcds_run startscript Hm, maybe this is a cool new feature. But you can edit the srcds_run yourself. This file doesn't change many times. Greetings DeaD_EyE sourceserver,info 2011/1/14

Re: [hlds_linux] srcds_run startscript

2011-01-15 Thread Sherwood McGowan
Can I ask something here, and please understand I'm not trolling/flaming, but it's apparent that some of the people who have contributed to this discussion are not the most experience Linux admins so this question I think needs to be asked. Has anyone tried making sure that the script is giving

Re: [hlds_linux] srcds_run startscript

2011-01-15 Thread Harry Strongburg
On Sat, Jan 15, 2011 at 10:08:52PM +0100, Ulrich Block wrote: if [ $(id -u) == 0 ]; then echo You can not run the srcds_run as root; exit; fi can not - should not, and change exit to read. People should not run it as root, but if they are taking the risk of running as such they shouldn't

Re: [hlds_linux] srcds_run startscript

2011-01-15 Thread Andre Müller
First thing: cd $(dirname $0) #is maybe not the best solution Some systems doesn't use default bash for a user. Second thing, the normal srcds_run script uses /bin/sh, look at the head of the script. The shebang enforces it. So the POSIX command substitution isn't supportet in bourne shell. On

Re: [hlds_linux] srcds_run startscript

2011-01-15 Thread frostschutz
On Sun, Jan 16, 2011 at 12:22:19AM +0100, Andre Müller wrote: cd $(dirname $0) #is maybe not the best solution The best solution is to leave as is. Anything else will risk breakage for lots of servers... It's completely unnecessary to do this when the user can just cd to the correct directory

Re: [hlds_linux] srcds_run startscript

2011-01-14 Thread Andre Müller
...@list.valvesoftware.com] On Behalf Of Simon Gunton } Sent: Thursday, January 13, 2011 7:17 AM } To: Half-Life dedicated Linux server mailing list } Subject: Re: [hlds_linux] srcds_run startscript } } Its not a valve issue, its how linux works does not matter what file it } is your executing you

Re: [hlds_linux] srcds_run startscript

2011-01-14 Thread Milton Ngan
[mailto:hlds_linux-boun...@list.valvesoftware.com] On Behalf Of Andre Müller Sent: Friday, January 14, 2011 11:02 AM To: Half-Life dedicated Linux server mailing list Subject: Re: [hlds_linux] srcds_run startscript Hm, maybe this is a cool new feature. But you can edit the srcds_run yourself

[hlds_linux] srcds_run startscript

2011-01-13 Thread Ulrich Block
I just read on a forum that some people had issues starting their servers. They tried something like: some/path/srcds_run -parameters which does not work because the srcds_run needs to be run from its directory. Could someone at valve add something like cd $(dirname $0) at the start of the

Re: [hlds_linux] srcds_run startscript

2011-01-13 Thread Simon Gunton
You could start the server with a script that would do the following: cd /home/gameserver1/srcds_l ./srcds_run -game cstrike +maxplayers 20 +map de_dust +ip IP -port PORT -tickrate 66 +tv_port 27086 +bot_join_after_player 1 +exec server.cfg -autoupdate /dev/n$ Or add a 2nd script in the

Re: [hlds_linux] srcds_run startscript

2011-01-13 Thread Ulrich Block
I know what to do. I just hoped that someone at valve reads my mail and add such funktion to their skript so that less people will have problems... Am 13.01.2011 12:20, schrieb Simon Gunton: You could start the server with a script that would do the following: cd /home/gameserver1/srcds_l

Re: [hlds_linux] srcds_run startscript

2011-01-13 Thread Simon Gunton
Its not a valve issue, its how linux works does not matter what file it is your executing you have to be in that folder. Simon Simon Gunton Support Analyst INX-Gaming.com Phone: 01733 687699 EMail: si...@inx-gaming.co.uk mailto:si...@inx-gaming.co.uk Support: http://support.inx-network.com

Re: [hlds_linux] srcds_run startscript

2011-01-13 Thread Fredrik Guldbrandzen
Why are you trying so hard not to understand the point of the original mail from a poster who obviously also knows how to use Linux? Ulrich Block, I'm with you on this one, any suggestion to make the startup easier without breaking it for users who know how to do things the proper way is a go in

Re: [hlds_linux] srcds_run startscript

2011-01-13 Thread Kyle Sanderson
This caught me up as well, as a work around I just ran cd in the screen before the I launched the wrapper. It would be great to have this changed, Kyle. On Thu, Jan 13, 2011 at 4:47 AM, Fredrik Guldbrandzen there...@gmail.com wrote: Why are you trying so hard not to understand the point of the

Re: [hlds_linux] srcds_run startscript

2011-01-13 Thread Florian Zschocke
On Thu, Jan 13, 2011 at 12:00 PM, Ulrich Block ulbl...@gmx.de wrote: Could someone at valve add something like cd $(dirname $0) at the start of the script to make it more userfriendly? Don't give them ideas. A cd is usually not that friendly as you find yourself in another directory after

Re: [hlds_linux] srcds_run startscript

2011-01-13 Thread Chris Boot
On 13/01/2011 16:17, Florian Zschocke wrote: On Thu, Jan 13, 2011 at 12:00 PM, Ulrich Blockulbl...@gmx.de wrote: Could someone at valve add something like cd $(dirname $0) at the start of the script to make it more userfriendly? Don't give them ideas. A cd is usually not that friendly as you

Re: [hlds_linux] srcds_run startscript

2011-01-13 Thread Guy Watkins
- } From: hlds_linux-boun...@list.valvesoftware.com [mailto:hlds_linux- } boun...@list.valvesoftware.com] On Behalf Of Simon Gunton } Sent: Thursday, January 13, 2011 7:17 AM } To: Half-Life dedicated Linux server mailing list } Subject: Re: [hlds_linux] srcds_run startscript } } Its not a valve