Package: festival
Version: 1.4.3-10
Severity: minor
Tags: patch

Hi,

the attached patch changes the festival init.d script(s) to use lsb
logging functions.

Regards,
David
diff -ur ./festival-1.4.3.orig/debian/control ./festival-1.4.3/debian/control
--- ./festival-1.4.3.orig/debian/control        2006-08-27 15:00:29.000000000 
+0200
+++ ./festival-1.4.3/debian/control     2006-08-27 15:03:40.000000000 +0200
@@ -7,7 +7,7 @@
 
 Package: festival
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, festvox-kallpc16k | festival-voice
+Depends: ${shlibs:Depends}, ${misc:Depends}, festvox-kallpc16k | 
festival-voice, lsb-base (>= 3.0-10)
 Conflicts: festvox-rablpc8k (<< 1.4.0-2), festvox-rablpc16k (<< 1.4.0-2), 
festvox-kdlpc16k (<< 1.4.0-4), festvox-kdlpc8k (<< 1.4.0-5), festvox-don (<< 
1.4.0-3), festvox-ellpc11k (<< 1.4.0-1), festlex-cmu (<< 1.4.0-3), festlex-oald 
(<< 1.4.0-2), festlex-poslex (<< 1.4.0-3)
 Description: general multi-lingual speech synthesis system
  Festival offers a full text to speech system with various APIs, as 
diff -ur ./festival-1.4.3.orig/debian/festival.init 
./festival-1.4.3/debian/festival.init
--- ./festival-1.4.3.orig/debian/festival.init  2006-08-27 15:00:29.000000000 
+0200
+++ ./festival-1.4.3/debian/festival.init       2006-08-27 15:03:10.000000000 
+0200
@@ -18,30 +18,32 @@
 REALPROC=/usr/bin/festival
 NAME=festival
 
+. /lib/lsb/init-functions
+
 test -x $DAEMON || exit 0
 
 case "$1" in
   start)
-    echo -n "Starting Festival server: "
+    log_daemon_msg "Starting Festival server" "$NAME"
     start-stop-daemon --start --chuid nobody:audio --background \
                --exec $DAEMON -- --server
-    echo "done."
+    log_end_msg 0
     ;;
   stop)
-    echo -n "Stopping Festival server: "
+    log_daemon_msg "Stopping Festival server" "$NAME"
     start-stop-daemon --stop --oknodo --exec $REALPROC
-    echo "done."
+    log_end_msg 0
     ;;
   restart|reload|force-reload)
-    echo "Restarting Festival server: "
+    log_daemon_msg "Restarting Festival server" "$NAME"
     start-stop-daemon --stop --oknodo --exec $REALPROC
     start-stop-daemon --start --chuid nobody:audio --background \
                --exec $DAEMON -- --server
-    echo "done."
+    log_end_msg 0
     ;;
   *)
-    echo "Usage: /etc/init.d/$NAME {start|stop|restart}"
-    exit 1
+    echo "Usage: /etc/init.d/$NAME {start|stop|restart}" >&2
+    exit 2
     ;;
 esac
 

Reply via email to