X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fscripts%2Flnet.in;h=84540bc9f7351f7de6f0ac4b023cc636f98d7eef;hb=c99b645470427c74b0ba6ea9a031d747b92030b5;hp=afd7519bc7d2d30f2c5383bac43e1266b03952f6;hpb=25ee73e7733214f7a46f81b2540b7fca67b0eef1;p=fs%2Flustre-release.git diff --git a/lustre/scripts/lnet.in b/lustre/scripts/lnet.in index afd7519..84540bc 100644 --- a/lustre/scripts/lnet.in +++ b/lustre/scripts/lnet.in @@ -1,5 +1,16 @@ #!/bin/bash # +# $Id: lnet.rc bogl Exp $ +# +### BEGIN INIT INFO +# Provides: lnet +# Required-Start: $network openibd +# Required-Stop: $network openibd +# Default-Start: 3 +# Default-Stop: 0 1 2 5 6 +# Description: Enable Lustre Networking +### END INIT INFO +# # lnet This shell script takes care of starting and stopping # the lnet (Lustre networking) services. # @@ -101,17 +112,14 @@ case "$1" in run_preexec_check "start" touch /var/lock/subsys/lnet modprobe lnet || exit 1 - @BUILD_DLC_TRUE@lnetctl lnet configure || exit 1 - @BUILD_DLC_TRUE@lnetctl import < "@sysconfdir@/lnet.conf" - @BUILD_DLC_FALSE@lctl network up || exit 1 - @BUILD_DLC_FALSE@lustre_routes_config "@sysconfdir@/lnet_routes.conf" + lnetctl lnet configure || exit 1 + lnetctl import < "@sysconfdir@/lnet.conf" run_postexec_check "start" ;; stop) run_preexec_check "stop" lustre_rmmod ptlrpc || exit 1 - @BUILD_DLC_TRUE@lnetctl lnet unconfigure || exit 1 - @BUILD_DLC_FALSE@lctl network down || exit 1 + lnetctl lnet unconfigure || exit 1 lustre_rmmod libcfs ldiskfs || exit 1 rm -f /var/lock/subsys/lnet run_postexec_check "stop"