summarylogtreecommitdiffstats
path: root/fcgiwrap-multiwatch.service
diff options
context:
space:
mode:
authorAlexandros Michalopoulos2018-10-16 15:59:57 +0300
committerAlexandros Michalopoulos2018-10-16 15:59:57 +0300
commit821b2eff44c8378ab3092657fc1abf8dac8321f3 (patch)
tree274fa9513730b01a81a3f56a7831a747a64e461b /fcgiwrap-multiwatch.service
parent96fa328b1970235db4d477133be38670d105c81e (diff)
downloadaur-821b2eff44c8378ab3092657fc1abf8dac8321f3.tar.gz
v=1.32.2,r=3 - Added spawn-fcgi & multiwatch to the mix so ZoneMinder can utilize more than 1 simultaneous CGI threads when running on Nginx
Diffstat (limited to 'fcgiwrap-multiwatch.service')
-rw-r--r--fcgiwrap-multiwatch.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/fcgiwrap-multiwatch.service b/fcgiwrap-multiwatch.service
new file mode 100644
index 000000000000..504e4a465802
--- /dev/null
+++ b/fcgiwrap-multiwatch.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Simple CGI server launched in multiple parallel instances via spawn-fcgi and multiwatch
+After=nss-user-lookup.target
+Conflicts=fcgiwrap.socket
+
+[Service]
+ExecStartPre=/usr/bin/rm -f /run/fcgiwrap.sock
+ExecStart=/usr/bin/spawn-fcgi -n -s /run/fcgiwrap.sock -u http -g http -M 660 -- /usr/bin/multiwatch -f 10 -- /usr/bin/fcgiwrap
+ExecStop=/usr/bin/killall -w -s 2 /usr/bin/fcgiwrap
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target