LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-11-2005, 05:30 PM   #1
Terroth
Member
 
Registered: Mar 2004
Posts: 47

Rep: Reputation: 15
Start/stop/update scripts do not work over webmin.


Hey guys, i've setup my MDK 64Bit server as http://gameservernews.com/index.php?showtopic=6 that says. The game im using is Counter-Strike: Source, so I followed these instructions, http://gameservernews.com/index.php?showtopic=26 . Now from webmin when I click the custom commands I made I run into problems...

To clarify on my problem, this is the scripts and the errors, my usernames and etc...

My gameuser is, gameuser. My first server is user, indecline.

./start

Code:
 
screen -r indecline -X quit
echo Server has been restarted
screen -dmS indecline ./srcds_run -game cstrike +maxplayers 12 +exec server.cfg +map de_dust2

./stop

Code:
  
#!/bin/sh
screen -r indecline -X quit
echo Server has been stopped

./update

Code:
  
./steam -command update -game "Counter-Strike Source" -dir /home/servers/indecline -username xxx -password xxx


Running ./start from webmin goes this far,

Code:
  
Auto detecting CPU
Using AMD-Opteron (64 bit) Optimised binary.
Auto-restarting the server on crash

and locks up there no matter how long I leave it on the page.

Running ./start from root in SSH is fine, running ./start from gameuser in SSH returns this code (guessing this is my problem, does webmin have to run as indecline instead of gameuser?).

Code:
  

Auto-restarting the server on crash

Console initialized.
Network: IP 127.0.0.1, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
Failed to load server_i486.so
Failed to load server binary
couldn't exec valve.rc

./stop I do not know if it works, as I do not have a valid start script yet.

./update from webmin returns this code,

Code:
  
Output from command .. Checking bootstrapper version ... Getting version 13 of Steam HLDS Update Tool Downloading. . . . . . . . . . . . Cannot open output file 'LinuxHldsUpdateTool_13.pkg'

Im not sure what to do from here, any help would be greatly appritiated! Thanks guys!
 
Old 03-12-2005, 05:57 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Do these scripts work without using webmin?
 
Old 03-21-2005, 06:27 AM   #3
bandwidth
LQ Newbie
 
Registered: Mar 2005
Posts: 1

Rep: Reputation: 0
same problem

i am having the exact same problem, i pretty much read the same tutorial.

the scripts work fine over linux, but hang in the webadmin.
 
Old 02-23-2006, 11:46 PM   #4
cramer
Member
 
Registered: Feb 2006
Distribution: Red Hat 9
Posts: 112

Rep: Reputation: 15
You might want to check if you have the "screen" package installed and as for some of the scripts that hang, they are long processes and sometimes, continuous ones. For example, starting a server, will give you a long line of output into webmin that keeps going and going, if you press back, the server will be killed. You would have to stop the out put while still maintaining the process, this is done by adding the > /dev/null & command to the end of the command. This sends all the unwanted output into the file /dev/null (like a trash can) and then the "&" runs the process in the background, you can add in any neccesary "echo" commands to tell the user what you like. Remember any "Out of the box" tutorial like the one you linked to will require a varying amount of "tailoring" to suit your particular distro or setup. Good Luck!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Everything worked, did a complete update, now no bash scripts work! Dark Carnival Ubuntu 1 07-06-2005 05:38 AM
(FC3) ATI FGLRX Drivers work for months,FC3 update, stop working genixpro Linux - Hardware 2 04-23-2005 09:01 PM
Webmin doesn't work after update Mikessu Debian 1 02-08-2004 11:22 AM
Runlevel start/stop scripts vanalex Linux - General 0 01-27-2004 08:54 PM
Oracle 9i Start/Stop scripts vous Linux - Software 0 01-16-2004 01:59 AM


All times are GMT -5. The time now is 02:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration