summaryrefslogtreecommitdiffstats
path: root/gogs_supervisord.sh
diff options
context:
space:
mode:
authorjack <ac861219@gmail.com>2014-05-12 21:50:04 +0800
committerjack <ac861219@gmail.com>2014-05-12 21:50:04 +0800
commit83a10ce880f3eb15c7f6736aecece3ea41d9c3cd (patch)
treea116f2fdbd6ea9aae29293b81f7c9783e55e21ef /gogs_supervisord.sh
parent7ec3f1b2d88c9f8f92c6377ec71fcd018ae80d9e (diff)
downloadgitea-83a10ce880f3eb15c7f6736aecece3ea41d9c3cd.tar.gz
gitea-83a10ce880f3eb15c7f6736aecece3ea41d9c3cd.zip
add tip to modify the command path, add check the log folder, if not then create it.
Diffstat (limited to 'gogs_supervisord.sh')
-rwxr-xr-x[-rw-r--r--]gogs_supervisord.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/gogs_supervisord.sh b/gogs_supervisord.sh
index 2c7c6539bf..43908094b5 100644..100755
--- a/gogs_supervisord.sh
+++ b/gogs_supervisord.sh
@@ -1,8 +1,15 @@
#!/bin/sh
+echo 'plase remember to modify the command path in etc/conf/supervisord.conf(line 23)'
+
PID="/tmp/supervisord.pid"
CONF="conf/etc/supervisord.conf"
+LOGDIR="log"
+if [ ! -d $LOGDIR ]; then
+ mkdir $LOGDIR
+fi
+
stop() {
if [ -f $PID ]; then
kill `cat -- $PID`