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.
This commit is contained in:
Konstantin Pavlov 2016-11-02 17:31:29 +03:00
parent 40fc2ef257
commit fe3b441727
1 changed files with 17 additions and 0 deletions

17
nginx-ldap-auth.service Normal file
View File

@ -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