Whamcloud - gitweb
LU-9439 scripts: Provide a sample lnet.conf file
[fs/lustre-release.git] / lustre / scripts / systemd / lnet.service.in
1 [Unit]
2 Description=lnet management
3
4 Requires=network-online.target
5 After=network-online.target
6
7 ConditionPathExists=!/proc/sys/lnet/
8
9 [Service]
10 Type=oneshot
11 RemainAfterExit=true
12 ExecStart=@sbindir@/modprobe lnet
13 @BUILD_DLC_FALSE@ExecStart=@sbindir@/lctl network up
14 @BUILD_DLC_FALSE@ExecStart=@sbindir@/lustre_routes_config @sysconfdir@/lnet_routes.conf
15 @BUILD_DLC_TRUE@ExecStart=@sbindir@/lnetctl lnet configure
16 @BUILD_DLC_TRUE@ExecStart=@sbindir@/lnetctl import < @sysconfdir@/lnet.conf
17 ExecStop=@sbindir@/lustre_rmmod ptlrpc
18 @BUILD_DLC_FALSE@ExecStop=@sbindir@/lctl network down
19 @BUILD_DLC_TRUE@ExecStop=@sbindir@/lnetctl lnet unconfigure
20 ExecStop=@sbindir@/lustre_rmmod libcfs ldiskfs
21
22 [Install]
23 WantedBy=multi-user.target