]> git.ipfire.org Git - thirdparty/systemd.git/blame_incremental - units/systemd-resolved.service.m4.in
Drop busname unit type
[thirdparty/systemd.git] / units / systemd-resolved.service.m4.in
... / ...
CommitLineData
1# This file is part of systemd.
2#
3# systemd is free software; you can redistribute it and/or modify it
4# under the terms of the GNU Lesser General Public License as published by
5# the Free Software Foundation; either version 2.1 of the License, or
6# (at your option) any later version.
7
8[Unit]
9Description=Network Name Resolution
10Documentation=man:systemd-resolved.service(8)
11Documentation=https://www.freedesktop.org/wiki/Software/systemd/resolved
12Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
13Documentation=https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
14After=systemd-networkd.service network.target
15Before=network-online.target nss-lookup.target
16Wants=nss-lookup.target
17
18[Service]
19Type=notify
20Restart=always
21RestartSec=0
22ExecStart=@rootlibexecdir@/systemd-resolved
23WatchdogSec=3min
24CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER CAP_NET_RAW CAP_NET_BIND_SERVICE
25PrivateTmp=yes
26PrivateDevices=yes
27ProtectSystem=strict
28ProtectHome=yes
29ProtectControlGroups=yes
30ProtectKernelTunables=yes
31ProtectKernelModules=yes
32MemoryDenyWriteExecute=yes
33RestrictRealtime=yes
34RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
35SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
36SystemCallArchitectures=native
37ReadWritePaths=/run/systemd
38
39[Install]
40WantedBy=multi-user.target
41Alias=dbus-org.freedesktop.resolve1.service