#!/bin/sh # Startup script for wdt_tmonitor # # chkconfig: 2345 95 05 # description: Run cron jobs that were left out due to downtime # Source function library. . /etc/rc.d/init.d/functions [ -f /usr/bin/mcclient ] || exit 0 prog="mcclient" args=" -l /var/log/trd-memchecker/mcclient.log -d /var/log/trd-memchecker" start() { echo -n $"Starting $prog: " /usr/bin/mcclient $args & RETVAL=$? echo return $RETVAL } stop() { if test "x`pidof mcclient`" != x; then echo -n $"Stopping $prog: " killproc mcclient echo fi RETVAL=$? return $RETVAL } case "$1" in start) start ;; stop) stop ;; status) status mcclient ;; restart) stop start ;; condrestart) if test "x`pidof mcclient`" != x; then stop start fi ;; *) echo $"Usage: $0 {start|stop|restart|condrestart|status}" exit 1 esac exit $RETVAL