Systemd support perhaps finished... (#583)
This commit is contained in:
parent
c64c3758de
commit
a67e640a36
1
debian/control
vendored
1
debian/control
vendored
|
@ -4,6 +4,7 @@ Uploaders: Xavier Guimard <x.guimard@free.fr>
|
||||||
Section: perl
|
Section: perl
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Build-Depends: debhelper (>= 9),
|
Build-Depends: debhelper (>= 9),
|
||||||
|
dh-systemd,
|
||||||
po-debconf
|
po-debconf
|
||||||
Build-Depends-Indep: libapache-session-perl,
|
Build-Depends-Indep: libapache-session-perl,
|
||||||
libauthcas-perl,
|
libauthcas-perl,
|
||||||
|
|
3
debian/lemonldap-ng-fastcgi-server.service
vendored
3
debian/lemonldap-ng-fastcgi-server.service
vendored
|
@ -5,11 +5,12 @@ After=network.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
EnvironmentFile=/etc/default/lemonldap-ng-fastcgi-server
|
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
|
ExecStart=/usr/sbin/llng-fastcgi-server
|
||||||
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile ${PID}
|
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile ${PID}
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Alias=llng-fastcgi-server.service
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
|
2
debian/lemonldap-ng-fastcgi-server.upstart
vendored
2
debian/lemonldap-ng-fastcgi-server.upstart
vendored
|
@ -10,6 +10,6 @@ pre-start script
|
||||||
[ -x /usr/sbin/llng-fastcgi-server ] || { stop; exit 0; }
|
[ -x /usr/sbin/llng-fastcgi-server ] || { stop; exit 0; }
|
||||||
end script
|
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
|
pre-stop exec /usr/sbin/nginx -s quit
|
||||||
|
|
2
debian/rules
vendored
2
debian/rules
vendored
|
@ -17,7 +17,7 @@ LMINIFILE=$(CONFDIR)/lemonldap-ng.ini
|
||||||
CAPTCHADIR=$(LMVARDIR)/captcha
|
CAPTCHADIR=$(LMVARDIR)/captcha
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@ --with systemd
|
||||||
|
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
$(MAKE) configure STORAGECONFFILE=/etc/lemonldap-ng/lemonldap-ng.ini \
|
$(MAKE) configure STORAGECONFFILE=/etc/lemonldap-ng/lemonldap-ng.ini \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user