Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > a502f967ce4a25ee95946e5754304c66 > files > 2

xrootd-3.3.5-1.fc18.i686.rpm

#!/bin/sh
#
# /etc/init.d/cmsd - Start/stop the cmsd service
#
# The following two lines allow this script to be managed by Fedora's
# chkconfig program.
#
# chkconfig: - 80 30
# description: cmsd is a manager for the xrootd cluster file system.

# Source function library.
. /etc/rc.d/init.d/xrootd-functions

if [ -e /etc/sysconfig/xrootd ]; then
  . /etc/sysconfig/xrootd
fi

COMMAND=$1
shift

case "$COMMAND" in
  'start')
    handleDaemons start cmsd $@
    ;;
  'stop')
    handleDaemons stop cmsd $@
    ;;
  'status')
    handleDaemons status cmsd $@
    ;;
  'reload' | 'restart')
    handleDaemons stop cmsd $@
    handleDaemons start cmsd $@
    ;;
  'condrestart')
    handleDaemons condrestart cmsd $@
    ;;
  *)
    echo "usage: $0 {start|stop|status|restart|condrestart}"
    ;;
esac

exit $?