Commit a67e640a authored by Xavier Guimard's avatar Xavier Guimard

Systemd support perhaps finished... (#583)

parent c64c3758
......@@ -4,6 +4,7 @@ Uploaders: Xavier Guimard <x.guimard@free.fr>
Section: perl
Priority: extra
Build-Depends: debhelper (>= 9),
dh-systemd,
po-debconf
Build-Depends-Indep: libapache-session-perl,
libauthcas-perl,
......
......@@ -5,11 +5,12 @@ After=network.target
[Service]
Type=forking
EnvironmentFile=/etc/default/lemonldap-ng-fastcgi-server
PIDFile=/var/run/llng-fastcgi-server/llng-fastcgi.pid
PIDFile=/var/run/llng-fastcgi-server/llng-fastcgi-server.pid
ExecStart=/usr/sbin/llng-fastcgi-server
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile ${PID}
KillMode=mixed
[Install]
Alias=llng-fastcgi-server.service
WantedBy=multi-user.target
......@@ -10,6 +10,6 @@ pre-start script
[ -x /usr/sbin/llng-fastcgi-server ] || { stop; exit 0; }
end script
exec /usr/sbin/llng-fastcgi-server -u www-data -g www-data -s /var/run/llng-fastcgi-server/llng-fastcgi.sock -p /var/run/llng-fastcgi-server/llng-fastcgi.pid
exec /usr/sbin/llng-fastcgi-server -u www-data -g www-data -s /var/run/llng-fastcgi-server/llng-fastcgi.sock -p /var/run/llng-fastcgi-server/llng-fastcgi-server.pid
pre-stop exec /usr/sbin/nginx -s quit
......@@ -17,7 +17,7 @@ LMINIFILE=$(CONFDIR)/lemonldap-ng.ini
CAPTCHADIR=$(LMVARDIR)/captcha
%:
dh $@
dh $@ --with systemd
override_dh_auto_configure:
$(MAKE) configure STORAGECONFFILE=/etc/lemonldap-ng/lemonldap-ng.ini \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment