Einzelnen Beitrag anzeigen
Alt 02.02.2012, 22:28   #6
Donzi.UTzone
Der oberste Chaf
 
Benutzerbild von Donzi
 
Registriert seit: 13.11.2009
Ort: Wiesbaden
Alter: 48
Beiträge: 8.721
Beigetretene Cups: 10
Cup Siege: 2
Downloads: 1399
Uploads: 2697
Donzi eine Nachricht über ICQ schicken
Standard

du bist einen schritt hintendran.

ich starte per weboberfläche
Code:
Wed Feb 1 19:42:42 2012: Launching process: /home/xxx/GameCreate-5212/minecraft/minecraft_launch.x86 25565 -Xms512M -Xmx1024M from directory /home/xxx/GameCreate-5212/minecraft
Das Ding macht nen Screen auf und die screenpid brauch ich.

Daher ja auch

Code:
ps -ef | grep -v grep | grep 'SCREEN -m -D -A -S "Minecraft Server"' | grep 25565 |awk ' { print $2 }' > $PIDFILE
aber es wird nicht die Pid geschrieben

------------------

Code:
# Server is not running start the server.
        if [ -x $STEAM/$DAEMON ]; then
            echo "Starting $TITLE - $LONGNAME - $CLIENT"
            echo "Server IP: $IP"
            echo "Server port: $PORT"
            echo "Server size: $SIZE players"
            CD $STEAM
            $INTERFACE $STEAM/$DAEMON $OPTS
            # Prevent race condition on SMP kernels
             sleep 1
            # Find and write current process id of the screen process
            ps -ef | grep SCREEN | grep "$NAME" | grep -v grep | awk '{ print $2}' > $STEAM/$GAME/$NAME-screen.pid
            echo "$TITLE screen process ID written to $STEAM/$GAME/$NAME-screen.pid"
            echo "$TITLE server process ID written to $STEAM/$GAME/$NAME.pid"

            echo "$TITLE started."
ich lieg eigentlich garnicht falsch, wenn ich mir andere scripte ansehe, mhhhhhhh
__________________
•• Alle Letsplays: https://wiki.Donzi.tv
• Discord: https://chat.Donzi.tv
• Twitch: https://Donzi.TV
• Youtube: https://Donzi.YT
• Twitter: https://Donzi.tv/twitter
• Steam: https://Donzi.tv/steam


• Mein Liebling: https://UTzone.de
• Twitter: https://twitter.com/UTzone
• Games kaufen: https://UTzone.de/shop/games
Donzi ist offline   Mit Zitat antworten