From 83a10ce880f3eb15c7f6736aecece3ea41d9c3cd Mon Sep 17 00:00:00 2001 From: jack Date: Mon, 12 May 2014 21:50:04 +0800 Subject: [PATCH] add tip to modify the command path, add check the log folder, if not then create it. --- gogs_supervisord.sh | 7 +++++++ 1 file changed, 7 insertions(+) mode change 100644 => 100755 gogs_supervisord.sh diff --git a/gogs_supervisord.sh b/gogs_supervisord.sh old mode 100644 new mode 100755 index 2c7c6539bf..43908094b5 --- 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`