#!/bin/bash #%rlevels: 0:k 1:k 2:k 3:s 4:k 5:s 6:k #%start: 33 #%stop: 27 #deps #%needs: #%before: #%after: source /etc/sysconfig/rc source $rc_functions case "$1" in start) echo -e ${COLOREDSTAR}"Starting cvsd pserver daemon ..." start-stop-daemon --start --quiet --background \ --exec /usr/sbin/cvsd evaluate_retval update_svcstatus $1 splash svc_started "$(basename $0)" 0 ;; stop) echo -e ${COLOREDSTAR}"Stopping cvsd pserver daemon ..." start-stop-daemon --stop --quiet \ --pidfile /var/run/cvsd.pid evaluate_retval update_svcstatus $1 splash svc_stopped "$(basename $0)" 0 ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc gkrellmd ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac