LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Start/stop/update scripts do not work over webmin. (https://www.linuxquestions.org/questions/linux-general-1/start-stop-update-scripts-do-not-work-over-webmin-300543/)

Terroth 03-11-2005 05:30 PM

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!

trickykid 03-12-2005 05:57 PM

Do these scripts work without using webmin?

bandwidth 03-21-2005 06:27 AM

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.

cramer 02-23-2006 11:46 PM

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!


All times are GMT -5. The time now is 01:59 PM.