aboutsummaryrefslogtreecommitdiff
path: root/gogs_supervisord.sh
diff options
context:
space:
mode:
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 2c7c6539..43908094 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`