From 359a20ea66c0c7e94eb357963fd893e1ec80415a Mon Sep 17 00:00:00 2001 From: fram3d Date: Wed, 21 Jun 2023 01:22:40 +0200 Subject: [PATCH] add luser.service file to deb package and change README --- README.md | 2 +- build-deb/luser/lib/systemd/system/luser.service | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 build-deb/luser/lib/systemd/system/luser.service diff --git a/README.md b/README.md index a48956c..1b813f9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Flask LDAP user management -Web app for adding,delating and modifying users using LDAP +Web app that allows users to add,remove and change passwords in LDAP system diff --git a/build-deb/luser/lib/systemd/system/luser.service b/build-deb/luser/lib/systemd/system/luser.service new file mode 100644 index 0000000..3505f83 --- /dev/null +++ b/build-deb/luser/lib/systemd/system/luser.service @@ -0,0 +1,12 @@ +[Unit] +Description=Gunicorn luser service +Documentation=man:gunicorn(1) +After=network.target nss-lookup.target + +[Service] +WorkingDirectory=/var/luser/ +ExecStart=/usr/bin/gunicorn --workers 3 --bind 127.0.0.1:5000 run:app + +[Install] +WantedBy=multi-user.target +