indent by 4
This commit is contained in:
@@ -21,7 +21,7 @@ DEFAULTS=/etc/default/$NAME
|
|||||||
|
|
||||||
# Source defaults file; edit that file to configure this script.
|
# Source defaults file; edit that file to configure this script.
|
||||||
if [ -e "${DEFAULTS}" ]; then
|
if [ -e "${DEFAULTS}" ]; then
|
||||||
. "${DEFAULTS}"
|
. "${DEFAULTS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If we're not to start the daemon, simply exit
|
# If we're not to start the daemon, simply exit
|
||||||
@@ -29,11 +29,6 @@ if [ "${START}" != "yes" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if no OPTIONS are defined use default options
|
|
||||||
if [ -z "${OPTIONS}" ]; then
|
|
||||||
OPTIONS="-c /etc/lcdproc/LCDd.conf"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# installation check
|
# installation check
|
||||||
test -x $DAEMON || exit 5
|
test -x $DAEMON || exit 5
|
||||||
|
|
||||||
@@ -42,22 +37,22 @@ test -x $DAEMON || exit 5
|
|||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
log_daemon_msg "Starting $DESC" "$NAME"
|
log_daemon_msg "Starting $DESC" "$NAME"
|
||||||
start_daemon $DAEMON $OPTIONS
|
start_daemon $DAEMON $OPTIONS
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
log_daemon_msg "Stopping $DESC" "$NAME"
|
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||||
killproc $DAEMON
|
killproc $DAEMON
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
restart|reload|force-reload)
|
restart|reload|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
sleep 1
|
sleep 1
|
||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
|
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
|
||||||
exit 2
|
exit 2
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ DEFAULTS=/etc/default/$NAME
|
|||||||
|
|
||||||
# Source defaults file; edit that file to configure this script.
|
# Source defaults file; edit that file to configure this script.
|
||||||
if [ -e "${DEFAULTS}" ]; then
|
if [ -e "${DEFAULTS}" ]; then
|
||||||
. "${DEFAULTS}"
|
. "${DEFAULTS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If we're not to start the daemon, simply exit
|
# If we're not to start the daemon, simply exit
|
||||||
@@ -37,17 +37,17 @@ test -x $DAEMON || exit 5
|
|||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
log_daemon_msg "Starting $DESC" "$NAME"
|
log_daemon_msg "Starting $DESC" "$NAME"
|
||||||
start_daemon $DAEMON $OPTIONS
|
start_daemon $DAEMON $OPTIONS
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
log_daemon_msg "Stopping $DESC" "$NAME"
|
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||||
killproc $DAEMON
|
killproc $DAEMON
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
restart|reload|force-reload)
|
restart|reload|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
sleep 1
|
sleep 1
|
||||||
$0 start
|
$0 start
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ DEFAULTS=/etc/default/$NAME
|
|||||||
|
|
||||||
# Source defaults file; edit that file to configure this script.
|
# Source defaults file; edit that file to configure this script.
|
||||||
if [ -e "${DEFAULTS}" ]; then
|
if [ -e "${DEFAULTS}" ]; then
|
||||||
. "${DEFAULTS}"
|
. "${DEFAULTS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If we're not to start the daemon, simply exit
|
# If we're not to start the daemon, simply exit
|
||||||
@@ -37,22 +37,22 @@ test -x $DAEMON || exit 5
|
|||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
log_daemon_msg "Starting $DESC" "$NAME"
|
log_daemon_msg "Starting $DESC" "$NAME"
|
||||||
start_daemon $DAEMON $OPTIONS
|
start_daemon $DAEMON $OPTIONS
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
log_daemon_msg "Stopping $DESC" "$NAME"
|
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||||
killproc $DAEMON
|
killproc $DAEMON
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
restart|reload|force-reload)
|
restart|reload|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
sleep 1
|
sleep 1
|
||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
|
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
|
||||||
exit 2
|
exit 2
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ DEFAULTS=/etc/default/$NAME
|
|||||||
|
|
||||||
# Source defaults file; edit that file to configure this script.
|
# Source defaults file; edit that file to configure this script.
|
||||||
if [ -e "${DEFAULTS}" ]; then
|
if [ -e "${DEFAULTS}" ]; then
|
||||||
. "${DEFAULTS}"
|
. "${DEFAULTS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If we're not to start the daemon, simply exit
|
# If we're not to start the daemon, simply exit
|
||||||
@@ -37,22 +37,22 @@ test -x $DAEMON || exit 5
|
|||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
log_daemon_msg "Starting $DESC" "$NAME"
|
log_daemon_msg "Starting $DESC" "$NAME"
|
||||||
start_daemon $DAEMON $OPTIONS
|
start_daemon $DAEMON $OPTIONS
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
log_daemon_msg "Stopping $DESC" "$NAME"
|
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||||
killproc $DAEMON
|
killproc $DAEMON
|
||||||
log_end_msg $?
|
log_end_msg $?
|
||||||
;;
|
;;
|
||||||
restart|reload|force-reload)
|
restart|reload|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
sleep 1
|
sleep 1
|
||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
|
echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload|force-reload}" >&2
|
||||||
exit 2
|
exit 2
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user