Debian init.d LCDd

From MythTV Official Wiki
Jump to: navigation, search

Debian /etc/init.d/LCDd

Author unknown
Description An init.d script for launching LCDd using the System V init in Debian
Supports


An init.d script for launching LCDd using the System V init in Debian.

Script.png /etc/init.d/LCDd

#! /bin/sh
#
# This is an init script for Debian Sid
# Copy it to /etc/init.d/LCDd and type
# > update-rc.d LCDd defaults 21
#


test -f /usr/local/sbin/LCDd || exit 0

case "$1" in
  start)
    echo -n "Starting LCD daemon: LCDd"
    start-stop-daemon --start --quiet --exec /usr/local/sbin/LCDd
    echo "."
    ;;
  stop)
    echo -n "Stopping LCD daemon: LCDd"
    start-stop-daemon --stop --quiet --exec /usr/local/sbin/LCDd
    echo "."
    ;;
  reload|force-reload)
    start-stop-daemon --stop --quiet --signal 1 --exec /usr/local/sbin/LCDd
    ;;
  restart)
    echo -n "Stopping LCD daemon: LCDd"
    start-stop-daemon --stop --quiet --exec /usr/local/sbin/LCDd
    sleep 1
    echo -n "Starting LCD daemon: LCDd"
    start-stop-daemon --start --quiet --exec /usr/local/sbin/LCDd
    echo "."
    ;;
  *)
    echo "Usage: /etc/init.d/LCDd {start|stop|reload|restart|force-reload}"
    exit 1
esac

exit 0