Group :: System/Kernel and hardware
RPM: lcdproc
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
#!/bin/sh
# Startup script for lcdd
#
# chkconfig: 2345 44 07
# description: Start the LCDd monitor
WITHOUT_RC_COMPAT=1
# Source function library.
. /etc/init.d/functions
[ -f /usr/sbin/LCDd ] || exit
LOCKFILE=/var/lock/subsys/lcdd
RETVAL=0
start() {
start_daemon --lockfile "$LOCKFILE" -- LCDd
RETVAL=$?
return $RETVAL
}
stop() {
stop_daemon --lockfile "$LOCKFILE" -- LCDd
RETVAL=$?
return $RETVAL
}
restart()
{
stop
start
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
reload|restart)
restart
;;
condstop)
if [ -e "$LOCKFILE" ]; then
stop
fi
;;
condrestart)
if [ -e "$LOCKFILE" ]; then
restart
fi
;;
status)
status anacron
RETVAL=$?
;;
*)
msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|status}"
RETVAL=1
esac
exit $RETVAL