summarylogtreecommitdiffstats
path: root/unifi-video.service
diff options
context:
space:
mode:
authorDonald Webster2016-04-18 22:05:52 -0700
committerDonald Webster2016-04-18 22:06:26 -0700
commit3e262517b06fe0ac72fef570b18bf3c1dedd8188 (patch)
tree0c35daf7b19a18f4f5421c9fcdc88b530d9e4c46 /unifi-video.service
parent6ed5455833568f3d4a7ed371121de687c9a79fb4 (diff)
downloadaur-3e262517b06fe0ac72fef570b18bf3c1dedd8188.tar.gz
Add more restart logic to systmd service file.
Diffstat (limited to 'unifi-video.service')
-rw-r--r--unifi-video.service4
1 files changed, 4 insertions, 0 deletions
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