#!/bin/sh # $Id$ #%rlevels: 3:s 0:k #%start: 99 #%stop: 00 #deps #%needs: #%before: #%after: source /etc/conf.d/rc source ${rc_functions} case "$1" in start) echo -e ${COLOREDSTAR}"Starting a single X11 session ..." loadproc /usr/bin/startx &> /dev/null evaluate_retval update_svcstatus $1 splash svc_started "$(basename $0)" 0 ;; stop) echo -e ${COLOREDSTAR}"Stopping single X11 session ..." killproc /usr/bin/X evaluate_retval update_svcstatus $1 splash svc_stopped "$(basename $0)" 0 ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc /usr/bin/X ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; esac