udpate systemd service
This commit is contained in:
parent
ef160a1923
commit
560a409978
2 changed files with 14 additions and 14 deletions
14
etc/systemd/system/njpma.service
Normal file
14
etc/systemd/system/njpma.service
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
[Unit]
|
||||||
|
Description=njpma
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
Restart=always
|
||||||
|
User=pandora
|
||||||
|
Group=pandora
|
||||||
|
WorkingDirectory=/srv/njpma
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
ExecStart=/srv/njpma/venv/bin/gunicorn app.wsgi:application --reuse-port -b [::]:8080
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -1,14 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=phantasma
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
Restart=always
|
|
||||||
User=phantasma
|
|
||||||
Group=phantasma
|
|
||||||
WorkingDirectory=/srv/phantasma
|
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
|
||||||
ExecStart=/srv/phantasma/venv/bin/gunicorn app.wsgi:application --reuse-port -b 127.0.0.1:8080
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
Loading…
Reference in a new issue