浏览代码

add tip to modify the command path, add check the log folder, if not then create it.

jack 11 年之前
父节点
当前提交
83a10ce880
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      gogs_supervisord.sh

+ 7 - 0
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`