mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-20 23:17:14 -04:00
New UI merge in progress
This commit is contained in:
parent
0a739cf9ac
commit
8dd07c0ddd
199 changed files with 15030 additions and 9325 deletions
42
scripts/gogs_supervisord.sh
Executable file
42
scripts/gogs_supervisord.sh
Executable file
|
@ -0,0 +1,42 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo 'plase remember to modify the command path in etc/supervisord.conf(line 23)'
|
||||
|
||||
PID="/tmp/supervisord.pid"
|
||||
CONF="etc/supervisord.conf"
|
||||
|
||||
LOGDIR="log"
|
||||
if [ ! -d $LOGDIR ]; then
|
||||
mkdir $LOGDIR
|
||||
fi
|
||||
|
||||
stop() {
|
||||
if [ -f $PID ]; then
|
||||
kill `cat -- $PID`
|
||||
rm -f -- $PID
|
||||
echo "stopped"
|
||||
fi
|
||||
}
|
||||
|
||||
start() {
|
||||
echo "starting"
|
||||
if [ ! -f $PID ]; then
|
||||
supervisord -c $CONF
|
||||
echo "started"
|
||||
fi
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart)
|
||||
stop
|
||||
start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue