#!/bin/sh # # description: iod is the PVFS I/O daemon # . /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 I/O daemon:" startproc ${PVFSbase}/bin/iod || return=$rc_failed echo -e "$return" ;; stop) echo -n "Stopping PVFS I/O daemon:" killproc -TERM ${PVFSbase}/bin/iod || return=$rc_failed echo -e "$return" ;; status) echo -n "Checking for PVFS I/O daemon:" checkproc ${PVFSbase}/bin/iod && 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