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
|
||||
if [ "$1" == "start" ]
|
||||
then
|
||||
touch "$gxg_root/System/Temporary/server.tty"
|
||||
/bin/stty --file="$gxg_root/System/Temporary/server.tty"
|
||||
/bin/stty --file=/dev/pts/0
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue