More fastcgi files (for other dist than Debian) (#583)

environments/ppa-mbqj77/deployments/1
Xavier Guimard 9 years ago
parent e19bb1e192
commit 2259ec820a
  1. 1
      debian/lemonldap-ng-fastcgi-server.upstart
  2. 5
      fastcgi-server/rc/llng-fastcgi-server
  3. 14
      fastcgi-server/systemd/llng-fastcgi-server.conf
  4. 16
      fastcgi-server/systemd/llng-fastcgi-server.service

@ -12,4 +12,3 @@ 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-server.pid
pre-stop exec /usr/sbin/nginx -s quit

@ -31,6 +31,11 @@ test -x $DAEMON || exit 0
if [ -z "$PID" ]; then
PID=/run/llng-fastcgi-server.pid
fi
if [ -z "$SOCKET" ]; then
SOCKET=/var/run/llng-fastcgi-server/llng-fastcgi.sock
fi
DAEMON_OPTS="-p ${PID} -u ${USER} -g ${GROUP} -s ${SOCKET}"
start_server() {
# Start the daemon/service

@ -0,0 +1,14 @@
description "FastCGI server for Lemonldap::NG websso system"
start on filesystem and static-network-up
stop on runlevel [016]
expect fork
respawn
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-server.pid

@ -0,0 +1,16 @@
[Unit]
Description=FastCGI server for Lemonldap::NG websso system
After=network.target
[Service]
Type=forking
EnvironmentFile=/etc/default/llng-fastcgi-server
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
Loading…
Cancel
Save