[Unit]
Description=imunify360-captcha-server - nginx-based captcha server for Imunify360
Documentation=https://docs.imunify360.com/
After=network-online.target remote-fs.target nss-lookup.target
Before=imunify360.service
Wants=network-online.target

[Service]
Type=forking
PIDFile=/var/run/imunify360-captcha-server.pid
ExecStartPre=/usr/sbin/imunify360-captcha-server -t -c /etc/imunify360/captcha/captcha.conf
ExecStart=/usr/sbin/imunify360-captcha-server -c /etc/imunify360/captcha/captcha.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID

[Install]
WantedBy=multi-user.target
