Attempt to fix daemon startup

This commit is contained in:
G. Gibson 2021-12-18 05:09:31 -08:00
parent c48d4c7ed0
commit 901a17db7e
3 changed files with 6 additions and 1 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
System/Configuration/*
System/Database/*

View file

@ -1 +0,0 @@
273867

3
daemon
View file

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