12-23-2013, 03:43 AM
I have a cron shell script that recompiles MCServer every night. How would I safely shutdown and/or restart MCServer from this script? (MCServer runs from screen)
| The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Trying to access array offset on null - Line: 198 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
|
|
Shutdown from shell script
|
|
12-23-2013, 03:43 AM
I have a cron shell script that recompiles MCServer every night. How would I safely shutdown and/or restart MCServer from this script? (MCServer runs from screen)
12-23-2013, 04:15 AM
Use a RCON client to send it the "stop" command.
We have a RCONClient tool in the Tools folder, but I haven't compiled it for anything else than windows yet, so it might take some work. Code: echo "stop" > /proc/?/fd/0Maybe that would work?
12-24-2013, 12:34 PM
Might, but I'm running in a screen session so I used:
screen -S mcserver -p 0 -X stuff "stop$(printf \\r)" |
|
« Next Oldest | Next Newest »
|