This is a multi-part message in MIME format.
--
>
> Hey guys I finally setup all my crontab stuff, and now I am
> stuck. I can exec the hlds.sh in my root/bin directory and
> halflife starts up fine, but the psychostats is not working.
> And after the reboot at 3am the machine never runs the hlds.sh
> so baseically the scripts are working fine but crontab wont
> execute them here is my mian crontab entry :

couple of questions --

why are you rebooting the machine?  Just to kill the hlds process?
There are better ways, and you won't lose connectivity during
the process..


Personally, i run hlds under screen so that I can always access its
console --  simply kill that screen session, and hlds will die
right along with it.

If you don't run under screen, hlds will not have a console to
write to, and will never start up correctly (IIRC) so you
probably want to do something like this:

exec /usr/bin/screen -c ~games/.screenrc -S HLcstrike
~games/half-life/HLcstrike

where HLcstrike is a shell script containing the commands that you use
to start it up.

My screenrc looks like this:

<-------------->8 cut here 8<------------------->
multiuser on
acladd admin1,admin2,games,root
startup_message off
scrollback   2000
bindkey \003 detach
bindkey \033 detach
detach
<-------------->8 cut here 8<------------------->

I like multi-user, so that any of my admins can attach to the
server and see what's going on.  You don't have to use it.

the two bindkeys set up control-c and escape to detach from screen,
and the final detach makes sure that any new screens auto-detach from
the parent.

--
[ smime.p7s of type application/x-pkcs7-signature deleted ]
--

_______________________________________________
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