Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-08-02 Thread Martin Zwickel
--
On Sat, 30 Jul 2005 22:46:33 -0400
<[EMAIL PROTECTED]> bubbled:

> how to leave hlds running after closeing ssh? when I close my
> connection to the root my server quits also.

If you don't want to re-attach to the server-console, you can use:

nohup ./hlds  &

;)

--
MyExcuse:
boss forgot system password

Martin Zwickel <[EMAIL PROTECTED]>
Research & Development

TechnoTrend AG 
--
[ Content of type application/pgp-signature deleted ]
--

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


RE: [hlds_linux] how to leave hlds running after closeing ssh

2005-08-02 Thread Brian \"Duck\" Holmes
This is a  script we use for all our instances, it's a nice wrapper
script that allows you to use {start|stop|restart} to manage the
servers.  It's lightly modified from a script I found some time back for
1.6 and sadly I can't remember who originally wrote it to give them the
credit.  The only credit listed in the file is a cryptic "edited by
jwm".  In any event here it is

** note the params lines are both single lines but the mail program
wrappedthem

#! /bin/sh

PATH=/bin:/usr/bin:/sbin:/usr/sbin

DIR=/gaming/css1
DAEMON=$DIR/srcds_run
# LAN-server:
# PARAMS="-game cstrike -nomaster -insecure +sv_lan 1 +maxplayers 16
+map de_dust2"
# Internet-server:
PARAMS="-game cstrike -ip 111.222.111.222 -port 27018 -steamport 27081
+maxplayers 20 +map de_train -tvdisable"
NAME=hardcss1
DESC="[H]ardCS:S Server #1"

case "$1" in
start)
  echo "Starting $DESC: $NAME"
  cd $DIR
  screen -d -m -S $NAME $DAEMON $PARAMS
  ;;

stop)
  if [[ `screen -ls |grep $NAME` ]]
  then
  echo -n "Stopping $DESC: $NAME"
  kill `screen -ls |grep $NAME |awk -F . '{print $1}'|awk '{print
$1}'`
  echo " ... done."
  else
  echo "Coulnd't find a running $DESC"
  fi
  ;;

restart)
  if [[ `screen -ls |grep $NAME` ]]
  then
  echo -n "Stopping $DESC: $NAME"
  kill `screen -ls |grep $NAME |awk -F . '{print $1}'|awk '{print
$1}'`
  echo " ... done."
  else
  echo "Coulnd't find a running $DESC"
  fi


  echo -n "Starting $DESC: $NAME"
  cd $DIR
  screen -d -m -S $NAME $DAEMON $PARAMS
  echo " ... done."
  ;;

*)
  echo "Usage: $0 {start|stop|restart}"
  exit 1
  ;;
esac

exit 0

Edited by jwm on Oct. 27 2002,05:14




Brian "Duck" Holmes
[H]ard|Gaming co-founder
www.hardgaming.com


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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-08-02 Thread William Warren

here's what i use:

sudo -u hlds sh -c "cd /servers/hlds/; screen -A -m -d -S hlds
./hlds_run -game cstrike -debug -pingboost 3 +port 27015 +maxplayers 12
-autoupdate +map cs_assault"

This is under CentOS-4.1.



[EMAIL PROTECTED] wrote:

how to leave hlds running after closeing ssh? when I close my connection to
the root my server quits also.



another question server dont show on steam list I seem to remember this
being a bug several months ago but caint remember how to fix provider of
machine says they have all ports open.


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



--
My "Foundation" verse:
Isa 54:17  No weapon that is formed against thee shall prosper; and
every tongue that shall rise against thee in judgment thou shalt
condemn. This is the heritage of the servants of the LORD, and their
righteousness is of me, saith the LORD.

-- carpe ductum -- "Grab the tape"
CDTT (Certified Duct Tape Technician)

Linux user #322099
Machines:
206822
256638
276825
http://counter.li.org/

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


RE: [hlds_linux] how to leave hlds running after closeing ssh

2005-08-01 Thread Andy Hill
Keep flaming away please... What you need to remember is that every one was
new to something once. If it helps the guy make his servers better, and
helps the community, then why should it not be on here. It was a really
quick and simple question which produced good results (e.g HalfD which I
didn't know of, and Stephane's script, so it was a worthy thread) althought
this has now been made a mountain from a mole hill.

It was hardly off topic now was it... Someone asking how to keep their
server open when exiting putty.

Oh well, whatever

Andy

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Simon Lange
Sent: 01 August 2005 11:52
To: hlds_linux@list.valvesoftware.com
Subject: RE: [hlds_linux] how to leave hlds running after closeing ssh

well it was send to me only once so had to think it did not reach the
target. ;) i wasnt rude - i was honest and asked simply why we discuss
offtopic issues around here.

well its not my problem that u are not able to ride. im on earth but the
difference to u is that i want hlds_linux stuff in my box and not (howto
bash, howto screen, howto runlevel howto linux ...) for these issues there
are tons of mailinglists manpages websites out there so there is really no
need for anyone to discuss.

so and since u try to make a discussion out of this change it to pm, stupid
(if u can stand the heat)

Simon
ps: this ends here - please back to hlds_linux issues thnx

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Hill
Sent: Monday, August 01, 2005 10:21 AM
To: hlds_linux@list.valvesoftware.com
Subject: RE: [hlds_linux] how to leave hlds running after closeing ssh

Not only were you rude and out of order, but you sent the same message
twice, can you say troll much ?

Get off your high horse, and please come back down to earth.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Simon Lange
Sent: 31 July 2005 18:21
To: hlds_linux@list.valvesoftware.com
Subject: RE: [hlds_linux] how to leave hlds running after closeing ssh

dont take me wrong, but more and more often offtopic threads come to this
mailinglist so i have to ask.
is this the mailing list "linux for dummies" ? or is this still the hlds
linux mailing list?! ;)

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cory Clemmer
Sent: Sunday, July 31, 2005 12:43 PM
To: hlds_linux@list.valvesoftware.com
Subject: Re: [hlds_linux] how to leave hlds running after closeing ssh

On 30/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> how to leave hlds running after closeing ssh? when I close my
> connection to the root my server quits also.

I use this command to start the server (taken from
http://www.srcds.com/db/engine.php?subaction=showfull&id=1098643920 ) screen
-A -m -d -S gm-server ./srcds_run -console -game gmod +map gm_construct
+maxplayers 6

and then when I need an interactive console I use this command.
screen -x gm-server


On 31/07/05, Sebastian <[EMAIL PROTECTED]> wrote:
> why does everyone say you need screen.. you dont need it.
> we run a few servers and have never needed it.. send output to log
> file or /dev/null and a simple & sends it to the background..

Just because "you" don't have a need for something doesn't mean nobody else
does, screen is a useful tool when used properly.

___
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


RE: [hlds_linux] how to leave hlds running after closeing ssh

2005-08-01 Thread Simon Lange
well it was send to me only once so had to think it did not reach the
target. ;) i wasnt rude - i was honest and asked simply why we discuss
offtopic issues around here.

well its not my problem that u are not able to ride. im on earth but the
difference to u is that i want hlds_linux stuff in my box and not (howto
bash, howto screen, howto runlevel howto linux ...) for these issues there
are tons of mailinglists manpages websites out there so there is really no
need for anyone to discuss.

so and since u try to make a discussion out of this change it to pm, stupid
(if u can stand the heat)

Simon
ps: this ends here - please back to hlds_linux issues thnx

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Hill
Sent: Monday, August 01, 2005 10:21 AM
To: hlds_linux@list.valvesoftware.com
Subject: RE: [hlds_linux] how to leave hlds running after closeing ssh

Not only were you rude and out of order, but you sent the same message
twice, can you say troll much ?

Get off your high horse, and please come back down to earth.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Simon Lange
Sent: 31 July 2005 18:21
To: hlds_linux@list.valvesoftware.com
Subject: RE: [hlds_linux] how to leave hlds running after closeing ssh

dont take me wrong, but more and more often offtopic threads come to this
mailinglist so i have to ask.
is this the mailing list "linux for dummies" ? or is this still the hlds
linux mailing list?! ;)

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cory Clemmer
Sent: Sunday, July 31, 2005 12:43 PM
To: hlds_linux@list.valvesoftware.com
Subject: Re: [hlds_linux] how to leave hlds running after closeing ssh

On 30/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> how to leave hlds running after closeing ssh? when I close my
> connection to the root my server quits also.

I use this command to start the server (taken from
http://www.srcds.com/db/engine.php?subaction=showfull&id=1098643920 ) screen
-A -m -d -S gm-server ./srcds_run -console -game gmod +map gm_construct
+maxplayers 6

and then when I need an interactive console I use this command.
screen -x gm-server


On 31/07/05, Sebastian <[EMAIL PROTECTED]> wrote:
> why does everyone say you need screen.. you dont need it.
> we run a few servers and have never needed it.. send output to log
> file or /dev/null and a simple & sends it to the background..

Just because "you" don't have a need for something doesn't mean nobody else
does, screen is a useful tool when used properly.

___
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


RE: [hlds_linux] how to leave hlds running after closeing ssh

2005-08-01 Thread Andy Hill
Not only were you rude and out of order, but you sent the same message
twice, can you say troll much ?

Get off your high horse, and please come back down to earth.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Simon Lange
Sent: 31 July 2005 18:21
To: hlds_linux@list.valvesoftware.com
Subject: RE: [hlds_linux] how to leave hlds running after closeing ssh

dont take me wrong, but more and more often offtopic threads come to this
mailinglist so i have to ask.
is this the mailing list "linux for dummies" ? or is this still the hlds
linux mailing list?! ;)

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cory Clemmer
Sent: Sunday, July 31, 2005 12:43 PM
To: hlds_linux@list.valvesoftware.com
Subject: Re: [hlds_linux] how to leave hlds running after closeing ssh

On 30/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> how to leave hlds running after closeing ssh? when I close my
> connection to the root my server quits also.

I use this command to start the server (taken from
http://www.srcds.com/db/engine.php?subaction=showfull&id=1098643920 ) screen
-A -m -d -S gm-server ./srcds_run -console -game gmod +map gm_construct
+maxplayers 6

and then when I need an interactive console I use this command.
screen -x gm-server


On 31/07/05, Sebastian <[EMAIL PROTECTED]> wrote:
> why does everyone say you need screen.. you dont need it.
> we run a few servers and have never needed it.. send output to log
> file or /dev/null and a simple & sends it to the background..

Just because "you" don't have a need for something doesn't mean nobody else
does, screen is a useful tool when used properly.

___
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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread Sambor
> >> I recommend HalfD for non-Source servers.

This is great tool and it's a great pity that is not longer supported!
I also use the last version (2.20b18) on my DoD server.
I made some changes in source code to make it work with amxmodx (forgive me
Maelstrom!) :)

Sambor


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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread m0gely

Sebastian wrote:


why does everyone say you need screen.. you dont need it.


He said he wanted to "re-attach".

--
- m0gely
http://quake2.telestream.com/
Q2 | Q3A | Counter-strike

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


RE: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread Simon Lange
sure but maybe is able to read manpages books or in other terms: is able to
write to the correct mailinglist...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stephane xj.
Lucas
Sent: Sunday, July 31, 2005 7:30 PM
To: hlds_linux@list.valvesoftware.com
Subject: RE: [hlds_linux] how to leave hlds running after closeing ssh

Maybe not everyone has 15 years+ experience in IT.

Stephane

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Simon Lange
Sent: 31 July 2005 18:21
To: hlds_linux@list.valvesoftware.com
Subject: RE: [hlds_linux] how to leave hlds running after closeing ssh

dont take me wrong, but more and more often offtopic threads come to this
mailinglist so i have to ask.
is this the mailing list "linux for dummies" ? or is this still the hlds
linux mailing list?! ;)

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cory Clemmer
Sent: Sunday, July 31, 2005 12:43 PM
To: hlds_linux@list.valvesoftware.com
Subject: Re: [hlds_linux] how to leave hlds running after closeing ssh

On 30/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> how to leave hlds running after closeing ssh? when I close my
> connection to the root my server quits also.

I use this command to start the server (taken from
http://www.srcds.com/db/engine.php?subaction=showfull&id=1098643920 ) screen
-A -m -d -S gm-server ./srcds_run -console -game gmod +map gm_construct
+maxplayers 6

and then when I need an interactive console I use this command.
screen -x gm-server


On 31/07/05, Sebastian <[EMAIL PROTECTED]> wrote:
> why does everyone say you need screen.. you dont need it.
> we run a few servers and have never needed it.. send output to log
> file or /dev/null and a simple & sends it to the background..

Just because "you" don't have a need for something doesn't mean nobody else
does, screen is a useful tool when used properly.

___
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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread Chuck Gibke
>> I recommend HalfD for non-Source servers. While it appears that
Maelstrom
is no longer supporting it and www.halfd.org is gone, you can still view
some of the site through the Wayback Machine:

http://web.archive.org/web/20040404200749/www.halfd.org/

(and archives dated earlier are there, too.)

The download links are, of course, broken and I don't see another
location out there but I can temporarily make it available:

halfd-2.20b15.tar.gz

http://tinyurl.com/dhw7t

halfd-2.20b15.md5

http://tinyurl.com/9fxuc

I'm still using it on our DoD servers.

"Insane" Husayn <<

I still use halfd on a CS 1.6 server. On my home PC (XP), I use "The
Overlord" to monitor server activity - it's Windows based.

The last version that Rob Abbott (Maelstrom) released was 2.20b18. The
server-client communication has a problem with the Steam IDs when someone
is connecting. This gets the user list on the client (Overlord or hlgui)
out-of-order and you can end up applying a kick or whatever to the wrong
player.

I can make this version available if there is any interest.

..Chuck


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


RE: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread Stephane xj. Lucas
Maybe not everyone has 15 years+ experience in IT.

Stephane

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Simon
Lange
Sent: 31 July 2005 18:21
To: hlds_linux@list.valvesoftware.com
Subject: RE: [hlds_linux] how to leave hlds running after closeing ssh

dont take me wrong, but more and more often offtopic threads come to
this mailinglist so i have to ask.
is this the mailing list "linux for dummies" ? or is this still the hlds
linux mailing list?! ;)

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cory
Clemmer
Sent: Sunday, July 31, 2005 12:43 PM
To: hlds_linux@list.valvesoftware.com
Subject: Re: [hlds_linux] how to leave hlds running after closeing ssh

On 30/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> how to leave hlds running after closeing ssh? when I close my
> connection to the root my server quits also.

I use this command to start the server (taken from
http://www.srcds.com/db/engine.php?subaction=showfull&id=1098643920 )
screen -A -m -d -S gm-server ./srcds_run -console -game gmod +map
gm_construct
+maxplayers 6

and then when I need an interactive console I use this command.
screen -x gm-server


On 31/07/05, Sebastian <[EMAIL PROTECTED]> wrote:
> why does everyone say you need screen.. you dont need it.
> we run a few servers and have never needed it.. send output to log
> file or /dev/null and a simple & sends it to the background..

Just because "you" don't have a need for something doesn't mean nobody
else does, screen is a useful tool when used properly.

___
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


RE: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread Simon Lange
dont take me wrong, but more and more often offtopic threads come to this
mailinglist so i have to ask.
is this the mailing list "linux for dummies" ? or is this still the hlds
linux mailing list?! ;)

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cory Clemmer
Sent: Sunday, July 31, 2005 12:43 PM
To: hlds_linux@list.valvesoftware.com
Subject: Re: [hlds_linux] how to leave hlds running after closeing ssh

On 30/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> how to leave hlds running after closeing ssh? when I close my
> connection to the root my server quits also.

I use this command to start the server (taken from
http://www.srcds.com/db/engine.php?subaction=showfull&id=1098643920 ) screen
-A -m -d -S gm-server ./srcds_run -console -game gmod +map gm_construct
+maxplayers 6

and then when I need an interactive console I use this command.
screen -x gm-server


On 31/07/05, Sebastian <[EMAIL PROTECTED]> wrote:
> why does everyone say you need screen.. you dont need it.
> we run a few servers and have never needed it.. send output to log
> file or /dev/null and a simple & sends it to the background..

Just because "you" don't have a need for something doesn't mean nobody else
does, screen is a useful tool when used properly.

___
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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread Steve Dalberg

I don't use screen for game servers if I can help it...

I create my start script "start-cs" in this case:

#!/bin/bash
cd /home/halflife/css/
./srcds_run -game cstrike +servercfgfile server1.cfg +ip x.x.x.x -port
27015 +map cs_assault +maxplayers 21 -autoupdate

Then I add the following to /etc/inittab
css:3:respawn:su game -c /home/halflife/css/start-cs

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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread Husayn ibn al-Samarqandi

I recommend HalfD for non-Source servers. While it appears that Maelstrom
is no longer supporting it and www.halfd.org is gone, you can still view
some of the site through the Wayback Machine:

http://web.archive.org/web/20040404200749/www.halfd.org/

(and archives dated earlier are there, too.)

The download links are, of course, broken and I don't see another
location out there but I can temporarily make it available:

halfd-2.20b15.tar.gz

http://tinyurl.com/dhw7t

halfd-2.20b15.md5

http://tinyurl.com/9fxuc

I'm still using it on our DoD servers.

"Insane" Husayn


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


RE: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread Stephane xj. Lucas
Hi,

First post for me

I use that script:

##
##

#!/bin/sh
# Start/stop/restart a Valve dedicated server

# Settings
CLIENT='Client 1';# Unique handle this server uses. Hostname
  # can be reset in your server.cfg

TITLE='|SD| Sitting Ducks';   # Name that is shown during start-up
messages
DSPATH='/home/CSS';   # Where Steam is installed
DSNAME='srcds_run';   # Either hlds_run or srcds_run
DSGAME='cstrike'; # Game type (valve, cstrike, czero, etc)
DSIMAP='de_dust'; # Load this map initially
DSPORT='27015';   # Game server listens on this UDP port
DSSIZE='40';  # Maximum number of players to allow
DSCONFIG='server.cfg';# Server config file


# Don't edit this unless you need the script to do something special
DSOPTS="-game $DSGAME +hostname \"$CLIENT\" +map $DSIMAP -port $DSPORT
+maxplayers $DSSIZE -flushlog +exec $DSCONFIG -autoupdate -tickrate 100"

service_start() {
  if [ -x $DSPATH/$DSNAME ]; then
echo "Service $TITLE: "
echo -n "$DSPATH/$DSNAME $DSOPTS"
cd $DSPATH; $DSPATH/$DSNAME $DSOPTS 1> /dev/null 2> /dev/null &
echo
sleep 1 # prevent race condition on SMP kernels
  fi
}

service_stop() {
  # Kill $CLIENT server if it's HLDS
  if [ $DSNAME == 'hlds_run' ]; then
for vdspid in $(ps a | grep hlds_run | grep "$CLIENT");
  do
kill $vdspid;
break;
done
for vdspid in $(ps a | grep hlds_i486 | grep "$CLIENT");
  do
kill $vdspid;
break;
done
for vdspid in $(ps a | grep hlds_i686 | grep "$CLIENT");
  do
kill $vdspid;
break;
done
for vdspid in $(ps a | grep hlds_amd | grep "$CLIENT");
  do
kill $vdspid;
break;
done
for vdspid in $(ps a | grep hlds_amd64 | grep "$CLIENT");
  do
kill $vdspid;
break;
done
  fi

  # Kill $CLIENT server if it's SourceDS
  if [ $DSNAME == 'srcds_run' ]; then
for vdspid in $(ps a | grep srcds_run | grep "$CLIENT");
  do
kill $vdspid;
break;
done
for vdspid in $(ps a | grep srcds_i486 | grep "$CLIENT");
  do
kill $vdspid;
break;
done
for vdspid in $(ps a | grep srcds_i686 | grep "$CLIENT");
  do
kill $vdspid;
break;
done
for vdspid in $(ps a | grep srcds_amd | grep "$CLIENT");
  do
kill $vdspid;
break;
done
  fi
}

service_restart() {
  service_stop
  sleep 1
  service_start
}

case "$1" in
'start')
  service_start
  ;;
'stop')
  service_stop
  ;;
'restart')
  service_restart
  ;;
*)
  echo "usage $0 start|stop|restart"
Esac


##
##


It's the perfect script to start/stop CSS on linux.
It never failed.


Stephane
|SD| Quack
Owner and creator of the Sitting Ducks clan
http://www.sitting-ducks.net






-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cory
Clemmer
Sent: 31 July 2005 11:43
To: hlds_linux@list.valvesoftware.com
Subject: Re: [hlds_linux] how to leave hlds running after closeing ssh

On 30/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> how to leave hlds running after closeing ssh? when I close my
> connection to the root my server quits also.

I use this command to start the server (taken from
http://www.srcds.com/db/engine.php?subaction=showfull&id=1098643920 )
screen -A -m -d -S gm-server ./srcds_run -console -game gmod +map
gm_construct +maxplayers 6

and then when I need an interactive console I use this command.
screen -x gm-server


On 31/07/05, Sebastian <[EMAIL PROTECTED]> wrote:
> why does everyone say you need screen.. you dont need it.
> we run a few servers and have never needed it.. send output to log
> file or /dev/null and a simple & sends it to the background..

Just because "you" don't have a need for something doesn't mean nobody
else does, screen is a useful tool when used properly.

___
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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread Ian mu
Btw, often I find when people say that the & doesn't work at the end
of a command, they are quitting putty or something without an
exit/quit command, and just closing the window which causes it to die,
whereas closing properly will keep it running with & at the end.

For those that don't use screen (or want to), I often suggest doing
"nohup ./command blah blah &" to cover pretty much all bases I can
think of with how they quit.

Having said that, I personally always use screen, just as I find it
easier to reattach anytime when fault finding etc.

Ian

On 7/31/05, Sebastian <[EMAIL PROTECTED]> wrote:
> Cory Clemmer wrote:
>
> >On 30/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> >>how to leave hlds running after closeing ssh? when I close my connection to
> >>the root my server quits also.
> >>
> >>
> >
> >I use this command to start the server (taken from
> >http://www.srcds.com/db/engine.php?subaction=showfull&id=1098643920 )
> >screen -A -m -d -S gm-server ./srcds_run -console -game gmod +map
> >gm_construct +maxplayers 6
> >
> >and then when I need an interactive console I use this command.
> >screen -x gm-server
> >
> >
> >On 31/07/05, Sebastian <[EMAIL PROTECTED]> wrote:
> >
> >
> >>why does everyone say you need screen.. you dont need it.
> >>we run a few servers and have never needed it.. send output to log file
> >>or /dev/null and a simple & sends it to the background..
> >>
> >>
> >
> >Just because "you" don't have a need for something doesn't mean nobody
> >else does, screen is a useful tool when used properly
> >
> >
> there is a difference between useful and actually needing... i never
> said it wasn't useful, i said it is not needed. so why bother telling
> someone to install something when it's not needed for what they're
> trying to do.. you make it sound like it is mandatory to install screen
> to send a process to the background... if you know *nix you would know
> it is not required.
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 7/28/2005
>
>
> ___
> 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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread Sebastian

Cory Clemmer wrote:


On 30/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:



how to leave hlds running after closeing ssh? when I close my connection to
the root my server quits also.




I use this command to start the server (taken from
http://www.srcds.com/db/engine.php?subaction=showfull&id=1098643920 )
screen -A -m -d -S gm-server ./srcds_run -console -game gmod +map
gm_construct +maxplayers 6

and then when I need an interactive console I use this command.
screen -x gm-server


On 31/07/05, Sebastian <[EMAIL PROTECTED]> wrote:



why does everyone say you need screen.. you dont need it.
we run a few servers and have never needed it.. send output to log file
or /dev/null and a simple & sends it to the background..




Just because "you" don't have a need for something doesn't mean nobody
else does, screen is a useful tool when used properly



there is a difference between useful and actually needing... i never
said it wasn't useful, i said it is not needed. so why bother telling
someone to install something when it's not needed for what they're
trying to do.. you make it sound like it is mandatory to install screen
to send a process to the background... if you know *nix you would know
it is not required.


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 7/28/2005


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


RE: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread Simon Lange
dont take me wrong, but more and more often offtopic threads come to this
mailinglist so i have to ask.
is this the mailing list "linux for dummies" ? or is this still the hlds
linux mailing list?! ;)

Simon

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cory Clemmer
Sent: Sunday, July 31, 2005 12:43 PM
To: hlds_linux@list.valvesoftware.com
Subject: Re: [hlds_linux] how to leave hlds running after closeing ssh

On 30/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> how to leave hlds running after closeing ssh? when I close my
> connection to the root my server quits also.

I use this command to start the server (taken from
http://www.srcds.com/db/engine.php?subaction=showfull&id=1098643920 ) screen
-A -m -d -S gm-server ./srcds_run -console -game gmod +map gm_construct
+maxplayers 6

and then when I need an interactive console I use this command.
screen -x gm-server


On 31/07/05, Sebastian <[EMAIL PROTECTED]> wrote:
> why does everyone say you need screen.. you dont need it.
> we run a few servers and have never needed it.. send output to log
> file or /dev/null and a simple & sends it to the background..

Just because "you" don't have a need for something doesn't mean nobody else
does, screen is a useful tool when used properly.

___
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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread Cory Clemmer
On 30/07/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> how to leave hlds running after closeing ssh? when I close my connection to
> the root my server quits also.

I use this command to start the server (taken from
http://www.srcds.com/db/engine.php?subaction=showfull&id=1098643920 )
screen -A -m -d -S gm-server ./srcds_run -console -game gmod +map
gm_construct +maxplayers 6

and then when I need an interactive console I use this command.
screen -x gm-server


On 31/07/05, Sebastian <[EMAIL PROTECTED]> wrote:
> why does everyone say you need screen.. you dont need it.
> we run a few servers and have never needed it.. send output to log file
> or /dev/null and a simple & sends it to the background..

Just because "you" don't have a need for something doesn't mean nobody
else does, screen is a useful tool when used properly.

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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread Sebastian

m0gely wrote:


Ook wrote:


I used to know how to do this. Could some kind soul post the syntax
to do
this?



You install and use "screen".


why does everyone say you need screen.. you dont need it.
we run a few servers and have never needed it.. send output to log file
or /dev/null and a simple & sends it to the background..


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 7/28/2005


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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-31 Thread m0gely

Ook wrote:


I used to know how to do this. Could some kind soul post the syntax to do
this?


You install and use "screen".

--
- m0gely
http://quake2.telestream.com/
Q2 | Q3A | Counter-strike

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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-30 Thread
Quoting [EMAIL PROTECTED]:

> ok I am new to lenux have always ran my clans servers under windows but we
> moved due to price and lenux being less resources. so that said. I tried the
> & at end of command I may have done it wrong not sure but it lost server
> once i closed ssh unless i need to issue a command to close ssh other than
> clicking close at top lol.
>
> its running redhat lenux fedora core 2 with 2.6 something kernal from my
> understanding from the data center people
>
> any help would be appricaited it is showing on steam list by the way so no
> need to answer that one.
>
>
> ___
> To unsubscribe, edit your list preferences, or view the list archives, please
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>

use screen

screen -A -m -d -S css ./srcds_run -game cstrike +maxplayers 20 +map de_dust -ip
xxx.xxx.xxx. -autoupdate

If this brings up no error you will see the screen proccess by typing

ps aux

on the right side of screen you will see SCREEN -A -m -d -S blah blah blah
all the way on the left side of the screen you will see the pid # to see your
servers console type this

screen -r (pid# here)

to detach the screen and leave the server running you hold down your ctrl button
and press a then d

If you get an error when tring to use screen to start your server then you need
to Install It.

yum install screen

If that brings up no yes or no to Install question then you probably have It but
Its not running so you type this.

service screen start

I think dont quote me on that.


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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-30 Thread Ook

I used to know how to do this. Could some kind soul post the syntax to do
this? I use putty to get to my linux box, and by attaching to the existing
process, I can watch/do stuff/etc. and when I close the ssh session,
everything keeps running as happy as can be.



On Saturday 30 July 2005 10:53 pm, e-Plutonia wrote:

Wait, which shell are you running ? Which OS ?

bash, on linux.  Not that it matters anyways; running a process in the
background still makes it a child process of your ssh login shell.  You
need
screen to detach itself from that process tree.




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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-30 Thread Andrew Forsberg

John Sheu wrote:


On Saturday 30 July 2005 10:53 pm, e-Plutonia wrote:



Wait, which shell are you running ? Which OS ?



bash, on linux.  Not that it matters anyways; running a process in the
background still makes it a child process of your ssh login shell.  You need
screen to detach itself from that process tree.




Ummm, no. That's not true.

I create processes all the time via ssh that continue to run after the
ssh session has finished. You don't need screen to send processes to the
background. You need screen only if you want to bring a process to the
foreground at some later stage, whether during the current session, or a
later one.



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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-30 Thread John Sheu
On Saturday 30 July 2005 10:53 pm, e-Plutonia wrote:
> Wait, which shell are you running ? Which OS ?
bash, on linux.  Not that it matters anyways; running a process in the
background still makes it a child process of your ssh login shell.  You need
screen to detach itself from that process tree.

-John Sheu
--
                                I
            think                                poem
   that              never               as                a
I       shall    see        a     lovely      as     binary   tree
___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-30 Thread e-Plutonia
Wait, which shell are you running ? Which OS ?

On 7/30/05, e-Plutonia <[EMAIL PROTECTED]> wrote:
> No it wont terminate ;)
>
> On 7/30/05, John Sheu <[EMAIL PROTECTED]> wrote:
> > On Saturday 30 July 2005 09:49 pm, e-Plutonia wrote:
> > > ./hlds_run -game cstrike -ip -port &
> > >
> > > the & at the end of the startup command puts the process into background.
> > Yes, but the process will still terminate when you log out.
> >
> > You're looking for "screen".
> >
> > -John Sheu
> > --
> >   I
> >   think poem
> >  that never as a
> > I shall see a lovely as binary tree
> > ___
> > To unsubscribe, edit your list preferences, or view the list archives, 
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >
>
>
> --
> DJ Fadyeyev
> Founder
> e-Plutonia
>


--
DJ Fadyeyev
Founder
e-Plutonia

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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-30 Thread e-Plutonia
No it wont terminate ;)

On 7/30/05, John Sheu <[EMAIL PROTECTED]> wrote:
> On Saturday 30 July 2005 09:49 pm, e-Plutonia wrote:
> > ./hlds_run -game cstrike -ip -port &
> >
> > the & at the end of the startup command puts the process into background.
> Yes, but the process will still terminate when you log out.
>
> You're looking for "screen".
>
> -John Sheu
> --
>   I
>   think poem
>  that never as a
> I shall see a lovely as binary tree
> ___
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>


--
DJ Fadyeyev
Founder
e-Plutonia

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


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-30 Thread John Sheu
On Saturday 30 July 2005 09:49 pm, e-Plutonia wrote:
> ./hlds_run -game cstrike -ip -port &
>
> the & at the end of the startup command puts the process into background.
Yes, but the process will still terminate when you log out.

You're looking for "screen".

-John Sheu
--
                                I
            think                                poem
   that              never               as                a
I       shall    see        a     lovely      as     binary   tree
___
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux


Re: [hlds_linux] how to leave hlds running after closeing ssh

2005-07-30 Thread e-Plutonia
./hlds_run -game cstrike -ip -port &

the & at the end of the startup command puts the process into background.

On 7/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> how to leave hlds running after closeing ssh? when I close my connection to
> the root my server quits also.
>
>
>
> another question server dont show on steam list I seem to remember this
> being a bug several months ago but caint remember how to fix provider of
> machine says they have all ports open.
>
>
> ___
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>


--
DJ Fadyeyev
Founder
e-Plutonia

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