Volg de onderstaande video om te zien hoe je onze site als web-app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Was dat een bash script dat als login shell werd gebruikt? Indien ja, vermoed ik dat ze dan gewoon vergeten zijn van nohup te gebruiken (dan blijft het proces nl. draaien ook als je zou afloggen - man nohup voor meer info). Post desnoods (de link naar) dat script hier eens.fretn zei:maar probleem is, dat de server stopt als je de ssh connectie sluit ..
#!/bin/sh
umask 002
while true
do
clear
echo " __ _____ _ ___ ___ __ __ _____ ___ "
echo " \ \ / / __| | / __/ _ \| \/ | |_ _/ _ \ "
echo " \ \/\/ /| _|| |_| (_| (_) | |\/| | | || (_) | "
echo " \_/\_/ |___|____\___\___/|_| |_| |_| \___/ "
echo
if test -f /tmp/.et-server-start
then
echo -e "\33[1;32m"
echo " ___ _____ ___ ___ _____ _____ ___ "
echo " | __|_ _|__/ __| __| _ \ \ / / __| _ \ "
echo " | _| | ||___\__ \ _|| /\ V /| _|| / "
echo " |___| |_| |___/___|_|_\ \_/ |___|_|_\ "
echo
echo -e " Status : RUNNING \33[0;0m"
else
echo -e "\33[1;31m"
echo " ___ _____ ___ ___ _____ _____ ___ "
echo " | __|_ _|__/ __| __| _ \ \ / / __| _ \ "
echo " | _| | ||___\__ \ _|| /\ V /| _|| / "
echo " |___| |_| |___/___|_|_\ \_/ |___|_|_\ "
echo
echo -e " Status : STOPPED \33[0;0m"
fi
#go to game map
cd /usr/local/games/enemy-territory/
echo " created by drummie&bArt "
echo "Make your choice between the next options"
echo
echo "Reboot the game-daemon : 1"
echo "Stop the game-daemon : 2"
echo "Start the game-daemon : 3"
#echo "Change rcon password : 4"
#echo "Set/change user password : 5"
echo "Quit configuration : 6"
echo
echo -n "Make your choice >"
read choice
if [ "$choice" = "1" ]; then
/usr/local/games/enemy-territory/et-stop
/usr/local/games/enemy-territory/et-start
rm /tmp/.et-server-start &> /dev/null
echo server is rebooting...
sleep 11
/bin/touch /tmp/.et-server-start
fi
if [ "$choice" = "2" ]; then
/usr/local/games/enemy-territory/et-stop
echo server is stopping ...
sleep 2
rm /tmp/.et-server-start &> /dev/null
fi
if [ "$choice" = "3" ]; then
/usr/local/games/enemy-territory/et-start
echo server is starting ...
sleep 2
/bin/touch /tmp/.et-server-start
sleep 2
fi
if [ "$choice" = "4" ]; then
echo "Your choice is 4"
fi
if [ "$choice" = "5" ]; then
echo "Your choice is 5"
fi
if [ "$choice" = "6" ]; then
exit
fi
done
#!/bin/sh
if test -f /tmp/.et.pid
then
echo -e "Server is already running\n"
else
touch /tmp/.et.pid
etded +set fs_basepath /usr/local/games/enemy-territory/ +set fs_homepath /home/et/.etwolf +set net_port 27961 +set com_zoneMegs 30 +set vm_game 0 +set ttycon 0 +set fs_game etpro +exec boozze.cfg +map oasis 1> /dev/null 2> /dev/null &
fi
if test -f /tmp/.et.pid
then
rm /tmp/.et.pid
killall -9 etded.x86
else
echo -e "Can't stop server if it isn't running\n"
fi