diff --git a/etc/systemd/system/njpma.service b/etc/systemd/system/njpma.service new file mode 100644 index 0000000..3f1c6d4 --- /dev/null +++ b/etc/systemd/system/njpma.service @@ -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 diff --git a/etc/systemd/system/phantasma.service b/etc/systemd/system/phantasma.service deleted file mode 100644 index 112e7b0..0000000 --- a/etc/systemd/system/phantasma.service +++ /dev/null @@ -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