Guten Tag die Herrn und Damen,
ich versuche schon seit ein paar Tagen einen screen befehl in ein Shellscript zu packen, um meine OpenTTD 1.6.1 serverkonsole auch noch im nachhinein öffnen zu können. Ich bin jetzt auch schon soweit gekommen:
Bash
#!/bin/bash
wait
echo "Beginne mit dem Serverstart"
sleep 1
screen -d -m -S openttd_server -c "/home/pi/openttd-init/openttd"
Nun wen ich die ausführe startet eine neue Screen Sitzung, nur dann kommt sowas hier:
Code
Configuration file is not correct!
Make sure that you have renamed config.example to config and that you have edited/inserted all the fields
Server using to long time to start... Lets wait 60 sec before abort...
Failed to start, aborting.
OPENTTD is now running!
Tries to stop server...
Server using longer time then expected to shutdown. Lets wait 60 sec before abort...
Could not stop server during this 60 sec
Check if server still runs by typing: 'screen -list'
If nothing is listed the server is not running...
If one or more screen are listed: type 'screen -r <The numbers in front of listed>'
Now you can stop the server manualy by type: 'exit'
OPENTTD is now shut down.
Check Permissions!! Unable to create pidfile. Please correct the permissions and try again.
No pidfile found, but server seems to be running.
Trying to creating new pidfile.
OPENTTD not running..
Saved game:
Loaded game:
SIGINIT CALLED - FORCE EXITING!
OPENTTD is running
OPENTTD is not running
Server is already running...
No running server.
No running server, starting it...
Auto saved game at:
Usage: COMMAND
/home/pi/openttd-init/openttd: 'echo [-n] "string"' expected.
Available commands:
/home/pi/openttd-init/openttd: 'echo [-n] "string"' expected.
/home/pi/openttd-init/openttd: 'echo [-n] "string"' expected.
/home/pi/openttd-init/openttd: 'echo [-n] "string"' expected.
/home/pi/openttd-init/openttd: 'echo [-n] "string"' expected.
/home/pi/openttd-init/openttd: 'echo [-n] "string"' expected.
/home/pi/openttd-init/openttd: 'echo [-n] "string"' expected.
/home/pi/openttd-init/openttd: 'echo [-n] "string"' expected.
No such command, see help
Alles anzeigen
Der untere Teil ist wohl uninteressant aber sonst habe ich, als absoluter Linux Bob keine Ahnung wo, und welches, config file gemeint ist. OpenTTD 1.6.1 läuft wenn ich es Manuel (openttd -D) als Server starte ohne Probleme, nur wie ich die newgrf einbinde hab ich noch nicht so ganz kapiert.
System:
Raspberry Pi Zero
Raspbian Jessie
Ich hoffe soweit das sind genug Infos und vielen dank im voraus.