3 # lustre This shell script takes care of starting and stopping Lustre
6 # description: Lustre Lite network File System. \
7 # This starts both Lustre client and server functions.
9 # config: /etc/lustre/lustre.cfg
10 # pidfile: /var/run/lustre.pid
13 LOCK=/var/lock/subsys/$SERVICE
15 # Source function library.
16 if [ -f /etc/init.d/functions ] ; then
17 . /etc/init.d/functions
20 # Source networking configuration.
21 if [ -f /etc/sysconfig/network ] ; then
22 . /etc/sysconfig/network
25 # Check that networking is up.
26 [ "${NETWORKING}" = "no" ] && exit 0
28 [ -f /usr/sbin/obdctl ] || exit 0
31 echo -n $"Starting $SERVICE: "
35 [ $RETVAL = 0 ] && touch $LOCK
39 echo -n $"Shutting down $SERVICE: "
40 /usr/sbin/llcleanup.sh
50 # See how we were called.
65 echo $"Usage: $SERVICE {start|stop|restart|status}"