summarylogtreecommitdiffstats
path: root/overture.service
diff options
context:
space:
mode:
authorMaddie Zhan2017-02-18 14:52:59 +0800
committerMaddie Zhan2017-02-18 14:52:59 +0800
commit8d4aff3c8c9aacafbd65d2dcb5b189f2589186e0 (patch)
treea676360ca87e83f615f890cdb5e247cd14bd4e50 /overture.service
parentee0c75b9d28a09e018eed6e2ad0245d08e6ebe72 (diff)
downloadaur-8d4aff3c8c9aacafbd65d2dcb5b189f2589186e0.tar.gz
Version 1.3.1
Also changed to run under nobody with CAP_NET_BIND_SERVICE capability
Diffstat (limited to 'overture.service')
-rw-r--r--overture.service4
1 files changed, 3 insertions, 1 deletions
diff --git a/overture.service b/overture.service
index 32f310f41ad5..8af3ccdff0d4 100644
--- a/overture.service
+++ b/overture.service
@@ -3,9 +3,11 @@ Description=A DNS upstream switcher written in Go in order to purify DNS records
After=network.target
[Service]
+User=nobody
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
ExecStart=/usr/bin/overture -c /etc/overture/config.json
Restart=always
-RestartSec=30
+RestartSec=5
[Install]
WantedBy=multi-user.target