From 560a409978be71a23b03b3768d7cd15b159ac45b Mon Sep 17 00:00:00 2001 From: j Date: Mon, 22 Nov 2021 21:24:39 +0100 Subject: [PATCH] udpate systemd service --- etc/systemd/system/njpma.service | 14 ++++++++++++++ etc/systemd/system/phantasma.service | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 etc/systemd/system/njpma.service delete mode 100644 etc/systemd/system/phantasma.service 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