#!/bin/bash # $$ #%rlevels: 0:k 1:k 6:k 7:s #%start: 65 #%stop: 45 #deps #%needs: #%before: #%after: source /etc/conf.d/rc source $rc_functions case "$1" in start) echo -e ${COLOREDSTAR}"Starting ConsoleKit daemon ..." start-stop-daemon \ --start -q\ --pidfile /var/run/ConsoleKit/pid \ --exec /usr/sbin/console-kit-daemon -- evaluate_retval splash svc_started splash 0 ;; stop) echo -e ${COLOREDSTAR}"Stopping ConsoleKit daemon ..." start-stop-daemon --stop -q --pidfile /var/run/ConsoleKit/pid evaluate_retval splash svc_stopped splash 0 ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc /usr/sbin/console-kit-daemon ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac