Commit df8b5362 authored by Yadd's avatar Yadd
Browse files

FastCGI now started by systemd (#583)

parent 1bcf1c91
......@@ -5,7 +5,7 @@
SOCKET=/var/run/llng-fastcgi-server/llng-fastcgi.sock
# Pid file
PID=/var/run/llng-fastcgi.pid
PID=/var/run/llng-fastcgi-server/llng-fastcgi-server.pid
# User and GROUP
USER=www-data
......
......@@ -29,7 +29,10 @@ test -x $DAEMON || exit 0
# Try to extract llng-fastcgi-server pidfile
if [ -z "$PID" ]; then
PID=/var/run/llng-fastcgi-server.pid
PID=/var/run/llng-fastcgi-server/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}"
......
......@@ -4,8 +4,8 @@ After=network.target
[Service]
Type=forking
PIDFile=/run/llng-fasctcgi.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.pid
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
......
......@@ -69,7 +69,7 @@ $server->parse_options(
'-E' => 'deployment',
'--pid' => $opts{p},
'--nproc' => $opts{n},
'--listen' => [ $opts{s} ],
'--socket' => $opts{s},
'--proc-title' => 'llng-fastcgi-server',
'--daemonize',
'--no-default-middleware',
......
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