Commit 29bef888 authored by Yadd's avatar Yadd
Browse files

Launch FastCGI server at startup (#583)

parent df8b5362
......@@ -13,3 +13,5 @@ if ! test -d /var/run/llng-fastcgi-server; then
fi
$CHOWN $USER:$GROUP /var/run/llng-fastcgi-server
#DEBHELPER#
exit 0
......@@ -7,7 +7,6 @@ Type=forking
PIDFile=/var/run/llng-fastcgi-server/llng-fastcgi.pid
ExecStart=/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
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/llng-fasctcgi.sock
TimeoutStop=2
KillMode=mixed
[Install]
......
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.pid
pre-stop exec /usr/sbin/nginx -s quit
Supports Markdown
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