#!/bin/bash # $Id$ #%rlevels: 0:k 1:k 2:k 3:s 4:k 5:s 6:k #%start: 26 #%stop: 51 #deps #%needs: #%before: #%after: source /etc/conf.d/rc source ${rc_functions} case "$1" in start) echo -e ${COLOREDSTAR}"Starting ..." loadproc ;; stop) echo -e ${COLOREDSTAR}"Stopping ..." killproc ;; reload) echo -e $COLOREDSTAR}"Reloading ..." reloadproc ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc ;; *) echo "Usage: $0 {start|stop|reload|restart|status}" exit 1 ;; esac