#!/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) rc_print "Starting ..." loadproc ;; stop) rc_print "Stopping ..." killproc ;; reload) rc_print "Reloading ..." reloadproc ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc ;; *) rc_echo "Usage: $0 {start|stop|reload|restart|status}" exit 1 ;; esac