summaryrefslogtreecommitdiffstats
path: root/distro/common/systemd/drop-in/systemd-compat.conf
blob: d251c4152f5c9fed56bc7a77c8c05b243d885b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# /usr/lib/systemd/system/kresd@.service.d/override.conf

# If systemd.227+ isn't available (e.g. CentOS 7), socket activation can't be used
# and the following modifications are required to use the service with
# manual activation.

# CAP_NET_BIND_SERVICE is necessary to be able to bind to a well-known port
# as an unprivilidged user.

# Explicit --forks=1 turns off interactive mode.

[Service]
Type=simple
AmbientCapabilities=CAP_NET_BIND_SERVICE
ExecStart=
ExecStart=/usr/sbin/kresd --config=/etc/knot-resolver/kresd.conf --forks=1
Sockets=