X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fscripts%2Fsystemd%2Flnet.service.in;h=8b0102e1b0bf0a4e580938e0ba50c6b9fde6bcbd;hb=d8226b9353dbc1448af8d23c13cae5f21cbe3a86;hp=1da15033672bbee5439ab30eec337ba9fabe6561;hpb=32d1a1c5d610d054ad4609c1cf332172e8310805;p=fs%2Flustre-release.git diff --git a/lustre/scripts/systemd/lnet.service.in b/lustre/scripts/systemd/lnet.service.in index 1da1503..8b0102e 100644 --- a/lustre/scripts/systemd/lnet.service.in +++ b/lustre/scripts/systemd/lnet.service.in @@ -2,21 +2,18 @@ Description=lnet management Requires=network-online.target -After=network-online.target +After=network-online.target openibd.service rdma.service opa.service ConditionPathExists=!/proc/sys/lnet/ [Service] Type=oneshot RemainAfterExit=true -ExecStart=@sbindir@/modprobe lnet -@BUILD_DLC_FALSE@ExecStart=@sbindir@/lctl network up -@BUILD_DLC_FALSE@ExecStart=@sbindir@/lustre_routes_config @sysconfdir@/lnet_routes.conf -@BUILD_DLC_TRUE@ExecStart=@sbindir@/lnetctl lnet configure -@BUILD_DLC_TRUE@ExecStart=@sbindir@/lnetctl import < @sysconfigdir@/lnet.conf +ExecStart=/sbin/modprobe lnet +ExecStart=@sbindir@/lnetctl lnet configure +ExecStart=@sbindir@/lnetctl import @sysconfdir@/lnet.conf ExecStop=@sbindir@/lustre_rmmod ptlrpc -@BUILD_DLC_FALSE@ExecStop=@sbindir@/lctl network down -@BUILD_DLC_TRUE@ExecStop=@sbindir@/lnetctl lnet unconfigure +ExecStop=@sbindir@/lnetctl lnet unconfigure ExecStop=@sbindir@/lustre_rmmod libcfs ldiskfs [Install]