mirror of
https://github.com/mistergibson/gxg-server.git
synced 2026-08-15 10:24:29 -07:00
Attempt to fix daemon startup
This commit is contained in:
parent
c48d4c7ed0
commit
901a17db7e
3 changed files with 6 additions and 1 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
System/Configuration/*
|
||||||
|
System/Database/*
|
||||||
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
273867
|
|
||||||
3
daemon
3
daemon
|
|
@ -5,10 +5,13 @@ 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="$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