File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 1
1
[unix_http_server]
2
- file=/tmp /supervisor.sock ; path to your socket file
2
+ file=log /supervisor.sock ; path to your socket file
3
3
4
4
[supervisord]
5
5
logfile=log/supervisord.log ; supervisord log file
6
6
logfile_maxbytes=50MB ; maximum size of logfile before rotation
7
7
logfile_backups=10 ; number of backed up logfiles
8
8
loglevel=warn ; info, debug, warn, trace
9
- pidfile=/tmp /supervisord.pid ; pidfile location
9
+ pidfile=log /supervisord.pid ; pidfile location
10
10
nodaemon=false ; run supervisord as a daemon
11
11
minfds=1024 ; number of startup file descriptors
12
12
minprocs=200 ; number of process descriptors
@@ -17,10 +17,10 @@ childlogdir=log
17
17
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
18
18
19
19
[supervisorctl]
20
- serverurl=unix:///tmp /supervisor.sock ; use a unix:// URL for a unix socket
20
+ serverurl=unix://log /supervisor.sock ; use a unix:// URL for a unix socket
21
21
22
22
[program:gogs]
23
- command = /root/Developer/gopath/src/github.com/gogits/gogs/start.sh ; here must be the real url, not ~ or $GOROOT like
23
+ command = gogs_start
24
24
autostart = true
25
- stdout_logfile = log/supervisor-gogs-stderr .log
26
- stderr_logfile = log/supervisor-gogs-error .log
25
+ stdout_logfile = log/supervisor-gogs-out .log
26
+ stderr_logfile = log/supervisor-gogs-err .log
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- echo ' plase remember to modify the command path in etc/supervisord.conf(line 23)'
4
-
5
- PID=" /tmp/supervisord.pid"
3
+ PID=" log/supervisord.pid"
6
4
CONF=" etc/supervisord.conf"
7
5
6
+ EXEPATH=' /usr/bin/gogs_start'
7
+ if [ ! -f $EXEPATH ]; then
8
+ gogs_scripts_path=$( cd ` dirname $0 ` ; pwd)
9
+ echo $gogs_scripts_path
10
+ sudo ln -s $gogs_scripts_path ' /start.sh' /usr/bin/gogs_start
11
+ fi
12
+
8
13
LOGDIR=" log"
9
14
if [ ! -d $LOGDIR ]; then
10
15
mkdir $LOGDIR
You can’t perform that action at this time.
0 commit comments