3 # lustre This shell script takes care of starting and stopping Lustre
6 # description: Lustre Lite File System
8 # config: /etc/lustre/lustre.cfg
9 # pidfile: /var/run/lustre.pid
11 # Source function library.
12 if [ -f /etc/init.d/functions ] ; then
13 . /etc/init.d/functions
16 # Source networking configuration.
17 if [ -f /etc/sysconfig/network ] ; then
18 . /etc/sysconfig/network
21 # Source InterSync configureation.
22 if [ -f /etc/sysconfig/intersync ] ; then
23 . /etc/sysconfig/intersync
26 CACHE=/var/intermezzo/cache
29 # Check that networking is up.
30 [ "${NETWORKING}" = "no" ] && exit 0
32 [ -f /usr/sbin/obdctl ] || exit 0
35 echo -n $"Starting lustre: "
39 [ $RETVAL = 0 ] && touch /var/lock/subsys/lustre
43 echo -n $"Shutting down lustre: "
44 /usr/sbin/llcleanup.sh
47 rm -f /var/lock/subsys/intersync
55 # See how we were called.
70 echo $"Usage: lustre {start|stop|restart|status}"