Commit 2259ec82 authored by Xavier Guimard's avatar Xavier Guimard

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

parent e19bb1e1
......@@ -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
......
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
[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
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