[Unit] Description=The Angie HTTP and reverse proxy server After=network-online.target remote-fs.target nss-lookup.target Wants=network-online.target [Service] Type=forking Environment=ANGIE_INSTANCE=%i PIDFile=/run/angie-%i.pid # Angie will fail to start if /run/angie.pid already exists but has the wrong # SELinux context. This might happen when running `angie -t` from the cmdline. # https://bugzilla.redhat.com/show_bug.cgi?id=1268621 ExecStartPre=/usr/bin/rm -f /run/angie-%i.pid ExecStartPre=/usr/sbin/angie -t -c /etc/angie/%i.conf ExecStart=/usr/sbin/angie -c /etc/angie/%i.conf ExecReload=/usr/sbin/angie -s reload -c /etc/angie/%i.conf KillSignal=SIGQUIT TimeoutStopSec=5 KillMode=mixed PrivateTmp=true [Install] WantedBy=multi-user.target