Systemd support perhaps finished... (#583)

This commit is contained in:
Xavier Guimard 2016-02-09 11:04:15 +00:00
parent c64c3758de
commit a67e640a36
4 changed files with 5 additions and 3 deletions

1
debian/control vendored
View File

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

View File

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

View File

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

2
debian/rules vendored
View File

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