Attempt to fix daemon startup 2

This commit is contained in:
G. Gibson 2021-12-18 07:03:02 -08:00
parent 901a17db7e
commit f714232854

4
daemon
View file

@ -5,13 +5,11 @@ gxg_root=`dirname "$the_path"`
cd $gxg_root cd $gxg_root
if [ "$1" == "start" ] if [ "$1" == "start" ]
then then
touch "$gxg_root/System/Temporary/server.tty" /bin/stty --file=/dev/pts/0
/bin/stty --file="$gxg_root/System/Temporary/server.tty"
sudo -u www-data ./server start --quiet sudo -u www-data ./server start --quiet
fi fi
if [ "$1" == "stop" ] if [ "$1" == "stop" ]
then then
sudo -u www-data ./server stop sudo -u www-data ./server stop
/bin/rm -rf "$gxg_root/System/Temporary/server.tty"
fi fi
exit 0 exit 0