Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
deploy committed Jun 18, 2019
1 parent 8ada1ae commit 002259d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 33 deletions.
2 changes: 1 addition & 1 deletion app/hostscheck/service_alarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
pkl_file.close()


checklogfile = '%s/hostscheck.log' %(log_path)
checklogfile = '/data/log/service_check.log'
logtime = 60*5
try:
ct = os.path.getmtime(checklogfile)
Expand Down
33 changes: 1 addition & 32 deletions deploy-supervisor.conf
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
[program:cedardeploy-hostscheck]
command=/usr/bin/python /app/cedardeploy/app/hostscheck/hostscheck.py
directory=/app/cedardeploy/app/hostscheck/
user=work
autostart=true
autorestart=true
stopsignal=QUIT
stopasgroup=true
stdout_logfile=/data/log/hostscheck.log
stderr_logfile=/data/log/hostscheck_error.log
stdout_logfile_maxbytes=500MB
stdout_logfile_backups=10
stderr_logfile_maxbytes=500MB
stderr_logfile_backups=10


[program:cedardeploy]
environment=HOME=/home/work
command=/usr/bin/uwsgi uwsgi.ini
command=/usr/bin/python manager.py runserver -d -r -h 10.10.10.10 -p 6000
directory=/app/cedardeploy
user=work
autostart=true
Expand All @@ -31,22 +17,5 @@ stderr_logfile_maxbytes=500MB
stderr_logfile_backups=10


#[program:cedardeploy]
#environment=HOME=/home/work
#command=/usr/bin/python manager.py runserver -d -r -p 6000
##command=/usr/bin/python manager.py runserver -d -r -h 10.10.10.10 -p 6000
#directory=/app/cedardeploy
#user=work
#autostart=true
#autorestart=true
#stopsignal=QUIT
#stopasgroup=true
#stdout_logfile=/data/log/cedardeploy.log
#stderr_logfile=/data/log/cedardeploy_error.log
#stdout_logfile_maxbytes=500MB
#stdout_logfile_backups=10
#stderr_logfile_maxbytes=500MB
#stderr_logfile_backups=10



0 comments on commit 002259d

Please sign in to comment.