kopia lustrzana https://github.com/OpenDroneMap/WebODM
commit
22c99a528c
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Start WebODM Celery Service Container
|
||||
Requires=webodm-nginx.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=odm
|
||||
Group=odm
|
||||
PIDFile=/run/webodm-celery.pid
|
||||
WorkingDirectory=/webodm
|
||||
ExecStart=/webodm/python3-venv/bin/celery -A worker worker --autoscale 8,2 --max-tasks-per-child 1000 --loglevel=warn
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Start WebODM Celery Scheduler Service Container
|
||||
Requires=webodm-nginx.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=odm
|
||||
Group=odm
|
||||
PIDFile=/run/webodm-celerybeat.pid
|
||||
WorkingDirectory=/webodm
|
||||
ExecStart=/webodm/python3-venv/bin/celery -A worker beat
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -8,9 +8,9 @@ User=odm
|
|||
Group=odm
|
||||
PIDFile=/run/webodm-gunicorn.pid
|
||||
WorkingDirectory=/webodm
|
||||
ExecStart=/webodm/python3-venv/bin/gunicorn webodm.wsgi --bind unix:/tmp/gunicorn.sock --timeout 300000 --max-requests 250 --preload
|
||||
ExecStart=/webodm/python3-venv/bin/gunicorn webodm.wsgi --bind unix:/webodm/gunicorn.sock --timeout 300000 --max-requests 250 --preload
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
|
@ -1,16 +1,15 @@
|
|||
[Unit]
|
||||
Description=Start WebODM Nginx Service Container
|
||||
After=syslog.target network.target remote-fs.target nss-lookup.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/webodm-nginx.pid
|
||||
ExecStartPre=/usr/sbin/nginx -t
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
PrivateTmp=false
|
||||
ExecStartPre=/usr/sbin/nginx -t -c /webodm/nginx/nginx.conf
|
||||
ExecStart=/usr/sbin/nginx -c /webodm/nginx/nginx.conf
|
||||
Restart=on-failure
|
||||
ExecReload=/usr/sbin/nginx -s reload
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue