diff options
author | Donald Webster | 2016-04-18 22:05:52 -0700 |
---|---|---|
committer | Donald Webster | 2016-04-18 22:06:26 -0700 |
commit | 3e262517b06fe0ac72fef570b18bf3c1dedd8188 (patch) | |
tree | 0c35daf7b19a18f4f5421c9fcdc88b530d9e4c46 /unifi-video.service | |
parent | 6ed5455833568f3d4a7ed371121de687c9a79fb4 (diff) | |
download | aur-3e262517b06fe0ac72fef570b18bf3c1dedd8188.tar.gz |
Add more restart logic to systmd service file.
Diffstat (limited to 'unifi-video.service')
-rw-r--r-- | unifi-video.service | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unifi-video.service b/unifi-video.service index 63b656e52806..e225ad9a446e 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 |