diff options
author | Alexandros Michalopoulos | 2018-10-16 15:59:57 +0300 |
---|---|---|
committer | Alexandros Michalopoulos | 2018-10-16 15:59:57 +0300 |
commit | 821b2eff44c8378ab3092657fc1abf8dac8321f3 (patch) | |
tree | 274fa9513730b01a81a3f56a7831a747a64e461b /fcgiwrap-multiwatch.service | |
parent | 96fa328b1970235db4d477133be38670d105c81e (diff) | |
download | aur-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.service | 13 |
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 |