mirror of
https://github.com/mistergibson/gxg-server.git
synced 2026-08-15 02:15:59 -07:00
Attempt to fix daemon startup 2
This commit is contained in:
parent
901a17db7e
commit
f714232854
1 changed files with 1 additions and 3 deletions
4
daemon
4
daemon
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue