From fe3b441727e6a985c1afd7a3d545b2330ebe0470 Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Wed, 2 Nov 2016 17:31:29 +0300 Subject: [PATCH] Added systemd service file for nginx-ldap-auth-daemon. This service file assumes nginx-ldap-auth-daemon.py was installed to /usr/bin under the name of nginx-ldap-auth-daemon. --- nginx-ldap-auth.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 nginx-ldap-auth.service diff --git a/nginx-ldap-auth.service b/nginx-ldap-auth.service new file mode 100644 index 0000000..04bd838 --- /dev/null +++ b/nginx-ldap-auth.service @@ -0,0 +1,17 @@ +[Unit] +Description=LDAP authentication helper for Nginx +After=network.target network-online.target + +[Service] +Type=simple +User=nobody +Group=nobody +WorkingDirectory=/var/run +PIDFile=/run/nginx-ldap-auth/nginx-ldap-auth.pid +ExecStart=/usr/bin/nginx-ldap-auth-daemon +KillMode=process +KillSignal=SIGINT +Restart=on-failure + +[Install] +WantedBy=multi-user.target