/
ibacm.service.in
28 lines (25 loc) · 941 Bytes
/
ibacm.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
28
[Unit]
Description=InfiniBand Address Cache Manager Daemon
Documentation=man:ibacm file:@CMAKE_INSTALL_FULL_SYSCONFDIR@/rdma/ibacm_opts.cfg
# Cause systemd to always start the socket, which means the parameters in
# ibacm.socket always configures the listening socket, even if the deamon is
# started directly.
Wants=ibacm.socket
# Ensure required kernel modules are loaded before starting
# Order ibacm startup after basic RDMA hw setup.
After=rdma-hw.target
# Implicitly after basic.target, note that ibacm writes to /var/log directly
# and thus needs writable filesystems setup.
[Service]
Type=notify
ExecStart=@CMAKE_INSTALL_FULL_SBINDIR@/ibacm --systemd
ProtectSystem=full
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
[Install]
Also=ibacm.socket
# Only want ibacm if RDMA hardware is present (or the socket is touched)
WantedBy=rdma-hw.target