kopia lustrzana https://github.com/OpenDroneMap/WebODM
Added system-v service files
rodzic
9e9a942e62
commit
28f0f17b9b
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Start WebODM Gunicorn Service Container
|
||||
Requires=webodm-nginx.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=odm
|
||||
Group=odm
|
||||
PIDFile=/run/webodm-gunicorn.pid
|
||||
WorkingDirectory=/webodm
|
||||
ExecStart=/webodm/python3-venv/bin/gunicorn webodm.wsgi --bind unix:/tmp/gunicorn.sock --preload
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Start WebODM Nginx Service Container
|
||||
|
||||
[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
|
||||
ExecStart=/usr/sbin/nginx -c /webodm/nginx/nginx.conf
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Ładowanie…
Reference in New Issue