-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try using supervisor to start processes
- Loading branch information
1 parent
491a660
commit 5b98702
Showing
3 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
[supervisord] | ||
logfile=/dev/null ; (main log file;default $CWD/supervisord.log) | ||
logfile_maxbytes=0 ; (max main logfile bytes b4 rotation;default 50MB) | ||
logfile_backups=0 ; (num of main logfile rotation backups;default 10) | ||
loglevel=info ; (log level;default info; others: debug,warn,trace) | ||
;pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid) | ||
nodaemon=true ; (start in foreground if true;default false) | ||
|
||
; the below section must remain in the config file for RPC | ||
; (supervisorctl/web interface) to work, additional interfaces may be | ||
; added by defining them in separate rpcinterface: sections | ||
[rpcinterface:supervisor] | ||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface | ||
|
||
[supervisorctl] | ||
serverurl=http://127.0.0.1:9001 | ||
|
||
[inet_http_server] | ||
port = 127.0.0.1:9001 | ||
|
||
[program:streamlit] | ||
command=./.venv/bin/python -m streamlit run cprex/ui/streamlit.py --server.port 8501 --server.address=0.0.0.0 | ||
directory=/cprex | ||
autostart=true | ||
autorestart=true | ||
startretries=10 | ||
user=root | ||
redirect_stderr=true | ||
# stdout_logfile=/var/log/streamlit.log | ||
# stdout_logfile_maxbytes=10MB | ||
# stdout_logfile_backups=10 | ||
stdout_logfile=/dev/fd/1 | ||
stdout_logfile_maxbytes=0 | ||
|
||
[program:grobid] | ||
command=./grobid-service/bin/grobid-service | ||
directory=/root/.cprex/grobid | ||
autostart=true | ||
autorestart=true | ||
startretries=10 | ||
user=root | ||
redirect_stderr=true | ||
# stdout_logfile=/var/log/grobid.log | ||
# stdout_logfile_maxbytes=10MB | ||
# stdout_logfile_backups=10 | ||
stdout_logfile=/dev/fd/1 | ||
stdout_logfile_maxbytes=0 | ||
|
||
[program:grobid-quantities] | ||
command=./bin/grobid-quantities server resources/config/config.yml | ||
directory=/root/.cprex/grobid/grobid-quantities | ||
autostart=true | ||
autorestart=true | ||
startretries=10 | ||
user=root | ||
redirect_stderr=true | ||
# stdout_logfile=/var/log/grobid.log | ||
# stdout_logfile_maxbytes=10MB | ||
# stdout_logfile_backups=10 | ||
stdout_logfile=/dev/fd/1 | ||
stdout_logfile_maxbytes=0 |