summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Webster2016-04-18 22:05:52 -0700
committerDonald Webster2016-04-18 22:06:26 -0700
commit3e262517b06fe0ac72fef570b18bf3c1dedd8188 (patch)
tree0c35daf7b19a18f4f5421c9fcdc88b530d9e4c46
parent6ed5455833568f3d4a7ed371121de687c9a79fb4 (diff)
downloadaur-3e262517b06fe0ac72fef570b18bf3c1dedd8188.tar.gz
Add more restart logic to systmd service file.
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD4
-rw-r--r--unifi-video.service4
3 files changed, 9 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4fc84e6454d..f13041bad40 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Tue Apr 19 05:00:42 UTC 2016
+# Tue Apr 19 05:06:19 UTC 2016
pkgbase = unifi-video
pkgdesc = Centralized management system for Ubiquiti UniFi Surveillance Cameras
pkgver = 3.2.2
- pkgrel = 2
+ pkgrel = 3
url = https://www.ubnt.com/
install = unifi-video.install
arch = x86_64
@@ -17,7 +17,7 @@ pkgbase = unifi-video
source = unifi-video.sysusers
source = unifi-video.patch
sha256sums = 4dba35c7d948567f098f13f5ac1faff7e4601ae99bc6477b8817a69f0dcfaeb4
- sha256sums = e0b26acb0d6c3c66e4b21d1f96db357532f2bc52c48acc7a5c3c9b6a21115819
+ sha256sums = f5f5244e19aba87884747cee371077bcfa9669806b9b0a8d0e176b9306c7f843
sha256sums = 90fb2f826a70d3b7815cd6a2253c2af6754c17504be28ef92ee223bd02093730
sha256sums = 26a11592d01ead22dbf2c083aae5cec320917902b516cfc595c12d158876bddb
diff --git a/PKGBUILD b/PKGBUILD
index 19f25c1dfad..380105cd05d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=unifi-video
pkgver=3.2.2
-pkgrel=2
+pkgrel=3
pkgdesc="Centralized management system for Ubiquiti UniFi Surveillance Cameras"
arch=('x86_64')
url="https://www.ubnt.com/"
@@ -14,7 +14,7 @@ source=("http://dl.ubnt.com/firmwares/unifi-video/$pkgver/unifi-video_$pkgver~Ub
'unifi-video.sysusers'
'unifi-video.patch')
sha256sums=('4dba35c7d948567f098f13f5ac1faff7e4601ae99bc6477b8817a69f0dcfaeb4'
- 'e0b26acb0d6c3c66e4b21d1f96db357532f2bc52c48acc7a5c3c9b6a21115819'
+ 'f5f5244e19aba87884747cee371077bcfa9669806b9b0a8d0e176b9306c7f843'
'90fb2f826a70d3b7815cd6a2253c2af6754c17504be28ef92ee223bd02093730'
'26a11592d01ead22dbf2c083aae5cec320917902b516cfc595c12d158876bddb')
diff --git a/unifi-video.service b/unifi-video.service
index 63b656e5280..e225ad9a446 100644
--- a/unifi-video.service
+++ b/unifi-video.service
@@ -7,6 +7,10 @@ Type=forking
WorkingDirectory=/usr/lib/unifi-video
TimeoutStartSec=300
TimeoutStopSec=300
+Restart=on-failure
+RestartSec=5
+StartLimitInterval=60s
+StartLimitBurst=3
ExecStart=/usr/bin/unifi-video --verbose start
ExecStop=/usr/bin/unifi-video --verbose stop