Difference between revisions of "Debian init.d LCDd"
From MythTV Official Wiki
Steveadeff (talk | contribs) |
(Let's merge scripts together. We don't have enough to warrant subcategorizing yet.) |
||
Line 46: | Line 46: | ||
− | [[Category: | + | [[Category:Scripts]] |
Revision as of 18:03, 18 May 2006
Debian /etc/init.d/LCDd
An init.d script for launching LCDd using the System V init in Debian.
Script
#! /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