#!/bin/sh -e # # lcdd Startup script for LCDd # # Modified for autoconf # by Rene Wagner # Modified for lcd-server # by Joris Robijn # Written by Miquel van Smoorenburg . # Modified for Debian GNU/Linux # by Ian Murdock . # # Version: $Id: init-LCDd.debian.in,v 1.2 2002/05/28 12:48:05 reenoo Exp $ DESC="LCDd @VERSION@" prefix=@prefix@ exec_prefix=@exec_prefix@ bindir=@bindir@ sbindir=@sbindir@ etc=@sysconfdir@ LCDd=${sbindir}/LCDd configfile=${etc}/LCDd.conf test -x ${LCDd} || exit 0 case "$1" in start) printf "Starting $DESC:" start-stop-daemon --start --quiet --background --exec ${LCDd} -- -s -f -c ${configfile} printf " LCDd" printf ".\n" ;; stop) printf "Stopping $DESC:" start-stop-daemon --stop --oknodo --quiet --exec ${LCDd} printf " LCDd" printf ".\n" ;; restart | force-restart) $0 stop sleep 1 $0 start ;; *) printf "Usage: $0 {start|stop|restart|force-reload}\n" >&2 exit 1 ;; esac exit 0