forked from linux-rdma/rdma-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrdma-ndd.service.in
27 lines (25 loc) · 921 Bytes
/
rdma-ndd.service.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[Unit]
Description=RDMA Node Description Daemon
Documentation=man:rdma-ndd
StopWhenUnneeded=yes
# rdma-ndd is a kernel support program and needs to run as early as possible,
# before the network link is brought up, and before an external manager tries
# to read the local node description.
DefaultDependencies=no
Before=sysinit.target
# Do not execute concurrently with an ongoing shutdown (required for DefaultDependencies=no)
Conflicts=shutdown.target
Before=shutdown.target
# Networking, particularly link up, should not happen until ndd is ready
Wants=network-pre.target
Before=network-pre.target
# rdma-hw is not ready until ndd is running
Before=rdma-hw.target
[Service]
Type=notify
Restart=always
ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/rdma-ndd --systemd
ProtectSystem=full
ProtectHome=true
ProtectKernelLogs=true
# rdma-ndd is automatically wanted by udev when an RDMA device with a node description is present