]> git.proxmox.com Git - systemd.git/blame - units/systemd-networkd.service.in
bump version to 252.11-pve1
[systemd.git] / units / systemd-networkd.service.in
CommitLineData
a032b68d 1# SPDX-License-Identifier: LGPL-2.1-or-later
52ad194e 2#
60f067b4
JS
3# This file is part of systemd.
4#
5# systemd is free software; you can redistribute it and/or modify it
6# under the terms of the GNU Lesser General Public License as published by
7# the Free Software Foundation; either version 2.1 of the License, or
8# (at your option) any later version.
9
10[Unit]
67bbd050 11Description=Network Configuration
60f067b4 12Documentation=man:systemd-networkd.service(8)
ecfb185f 13Documentation=man:org.freedesktop.network1(5)
e842803a 14ConditionCapability=CAP_NET_ADMIN
60f067b4 15DefaultDependencies=no
2897b343 16# systemd-udevd.service can be dropped once tuntap is moved to netlink
a032b68d 17After=systemd-networkd.socket systemd-udevd.service network-pre.target systemd-sysusers.service systemd-sysctl.service
ecfb185f
LB
18Before=network.target multi-user.target shutdown.target initrd-switch-root.target
19Conflicts=shutdown.target initrd-switch-root.target
a032b68d 20Wants=systemd-networkd.socket network.target
60f067b4
JS
21
22[Service]
f5e65279 23AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW
a032b68d 24BusName=org.freedesktop.network1
6e866b33 25CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW
f2dec872 26DeviceAllow=char-* rw
8b3d4ff0 27ExecStart=!!{{ROOTLIBEXECDIR}}/systemd-networkd
3a6ce677 28ExecReload=networkctl reload
086111aa 29FileDescriptorStoreMax=512
6e866b33
MB
30LockPersonality=yes
31MemoryDenyWriteExecute=yes
32NoNewPrivileges=yes
a032b68d 33ProtectProc=invisible
a10f5d05 34ProtectClock=yes
8a584da2 35ProtectControlGroups=yes
6e866b33 36ProtectHome=yes
e1f67bc7 37ProtectKernelLogs=yes
a032b68d 38ProtectKernelModules=yes
6e866b33
MB
39ProtectSystem=strict
40Restart=on-failure
a032b68d 41RestartKillSignal=SIGUSR2
6e866b33 42RestartSec=0
ea0999c9 43RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 AF_PACKET
6e866b33
MB
44RestrictNamespaces=yes
45RestrictRealtime=yes
bb4f798a 46RestrictSUIDSGID=yes
f5e65279
MB
47RuntimeDirectory=systemd/netif
48RuntimeDirectoryPreserve=yes
6e866b33
MB
49SystemCallArchitectures=native
50SystemCallErrorNumber=EPERM
51SystemCallFilter=@system-service
52Type=notify
53User=systemd-network
8b3d4ff0 54{{SERVICE_WATCHDOG}}
60f067b4
JS
55
56[Install]
60f067b4 57WantedBy=multi-user.target
e735f4d4 58Also=systemd-networkd.socket
81c58355
MB
59Alias=dbus-org.freedesktop.network1.service
60
ea0999c9
MB
61# The output from this generator is used by udevd and networkd. Enable it by
62# default when enabling systemd-networkd.service.
63Also=systemd-network-generator.service
64
81c58355
MB
65# We want to enable systemd-networkd-wait-online.service whenever this service
66# is enabled. systemd-networkd-wait-online.service has
67# WantedBy=network-online.target, so enabling it only has an effect if
68# network-online.target itself is enabled or pulled in by some other unit.
69Also=systemd-networkd-wait-online.service