📂Add web_api.conf for supervisor
This commit is contained in:
parent
b73c206327
commit
de023baf34
1 changed files with 14 additions and 0 deletions
14
supervisor/web_api.conf
Normal file
14
supervisor/web_api.conf
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
[program:web_api]
|
||||||
|
command=python3 web_api.py
|
||||||
|
directory=/www/wwwroot/Douyin_TikTok_Download_API/
|
||||||
|
autorestart=true
|
||||||
|
startsecs=3
|
||||||
|
startretries=3
|
||||||
|
stdout_logfile=/www/wwwroot/Douyin_TikTok_Download_API/log/web_api.out.log
|
||||||
|
stderr_logfile=/www/wwwroot/Douyin_TikTok_Download_API/log/web_api.err.log
|
||||||
|
stdout_logfile_maxbytes=2MB
|
||||||
|
stderr_logfile_maxbytes=2MB
|
||||||
|
user=root
|
||||||
|
priority=999
|
||||||
|
numprocs=1
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
Loading…
Reference in a new issue