diff options
author | jack <ac861219@gmail.com> | 2014-05-12 21:50:04 +0800 |
---|---|---|
committer | jack <ac861219@gmail.com> | 2014-05-12 21:50:04 +0800 |
commit | 83a10ce880f3eb15c7f6736aecece3ea41d9c3cd (patch) | |
tree | a116f2fdbd6ea9aae29293b81f7c9783e55e21ef /gogs_supervisord.sh | |
parent | 7ec3f1b2d88c9f8f92c6377ec71fcd018ae80d9e (diff) | |
download | gitea-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.sh | 7 |
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` |