]> git.ipfire.org Git - thirdparty/nqptp.git/commitdiff
Added AmbientCapabilities to nqptp.service.in 26/head
authorHs_Yeah <bYeahq@gmail.com>
Mon, 18 Sep 2023 19:12:47 +0000 (03:12 +0800)
committerGitHub <noreply@github.com>
Mon, 18 Sep 2023 19:12:47 +0000 (03:12 +0800)
Added AmbientCapabilities=CAP_NET_BIND_SERVICE
so that the systemd service can be used without the  capability set on the built nqptp binary.

nqptp.service.in

index 6f1eb0cc7e46371efa8ce83df9b356d0b578ae3c..53e6a2e52b12b339d1a4bad491c930c7f819c3f8 100644 (file)
@@ -8,6 +8,7 @@ Before=shairport-sync.service
 ExecStart=@prefix@/bin/nqptp
 User=nqptp
 Group=nqptp
+AmbientCapabilities=CAP_NET_BIND_SERVICE
 
 [Install]
 WantedBy=multi-user.target