#!/bin/sh # # description: mgr is the PVFS manager # . /etc/rc.config base=${0##*/} link=${base#*[SK][0-9][0-9]} PVFSbase=/usr/local return=$rc_done # See how we were called. case "$1" in start) echo -n "Starting PVFS manager:" startproc ${PVFSbase}/bin/mgr -r || return=$rc_failed echo -e "$return" ;; stop) echo -n "Stopping PVFS manager:" killproc -TERM ${PVFSbase}/bin/mgr || return=$rc_failed echo -e "$return" ;; status) echo -n "Checking for PVFS manager:" checkproc ${PVFSbase}/bin/mgr && echo OK || echo No process ;; restart) $0 stop && $0 start || return=$rc_failed ;; *) echo "Usage: $0 {start|stop|status|restart}" exit 1 esac test "$return" = "$rc_done" || exit 1 exit 0