mirror of
https://github.com/mistergibson/gxg-server.git
synced 2026-10-19 06:59:44 -07:00
Initial Commit
This commit is contained in:
parent
293d1d2445
commit
c48d4c7ed0
803 changed files with 561605 additions and 1 deletions
14
daemon
Executable file
14
daemon
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
source /etc/profile
|
||||
the_path=`realpath $0`
|
||||
gxg_root=`dirname "$the_path"`
|
||||
cd $gxg_root
|
||||
if [ "$1" == "start" ]
|
||||
then
|
||||
sudo -u www-data ./server start --quiet
|
||||
fi
|
||||
if [ "$1" == "stop" ]
|
||||
then
|
||||
sudo -u www-data ./server stop
|
||||
fi
|
||||
exit 0
|
||||
Loading…
Reference in a new issue