comparison debian/init @ 452:fb4e5f59f4a7 noffle

[svn] fixed look of status messages
author godisch
date Wed, 25 Jun 2003 17:36:44 +0100
parents fc3e4fc0a88d
children 0c7220ddf348
comparison
equal deleted inserted replaced
451:465d6f1971e0 452:fb4e5f59f4a7
1 #!/bin/sh 1 #!/bin/sh
2 # $Id: init 585 2003-06-25 15:34:53Z godisch $ 2 # $Id: init 595 2003-06-25 16:36:44Z godisch $
3 3
4 set -e 4 set -e
5 5
6 PATH="/bin:/usr/bin:/sbin:/usr/sbin" 6 PATH="/bin:/usr/bin:/sbin:/usr/sbin"
7 NOFFLE="/usr/bin/noffle" 7 NOFFLE="/usr/bin/noffle"
29 . /etc/default/noffle 29 . /etc/default/noffle
30 fi 30 fi
31 31
32 case "$1" in 32 case "$1" in
33 start) 33 start)
34 echo -n "Initializing offline news server: " 34 echo "Initializing offline news server..."
35 if [ "$NOFFLE_FETCHMODE" = ppp ]; then 35 if [ "$NOFFLE_FETCHMODE" = ppp ]; then
36 "$NOFFLE" --offline 36 "$NOFFLE" --offline
37 else 37 else
38 "$NOFFLE" --online 38 "$NOFFLE" --online
39 fi 39 fi
40 echo "." 40 echo "Done."
41 ;; 41 ;;
42 stop) 42 stop)
43 echo -n "Switching offline news server into offline mode: " 43 echo "Switching offline news server into offline mode..."
44 "$NOFFLE" --offline 44 "$NOFFLE" --offline
45 echo "." 45 echo "Done."
46 ;; 46 ;;
47 restart) 47 restart)
48 echo "No action done, as noffle is restarted upon each query." 48 echo "No action done, as noffle is restarted upon each query."
49 ;; 49 ;;
50 reload|force-reload) 50 reload|force-reload)
53 status) 53 status)
54 help 54 help
55 exit 4 # LSB: program or service status is unknown 55 exit 4 # LSB: program or service status is unknown
56 ;; 56 ;;
57 online|offline) 57 online|offline)
58 echo -n "Switching offline news server into $1 mode: " 58 echo "Switching offline news server into $1 mode..."
59 "$NOFFLE" --$1 59 "$NOFFLE" --$1
60 echo "." 60 echo "Done."
61 ;; 61 ;;
62 *) 62 *)
63 help 63 help
64 exit 2 # LSB: invalid or excess argument(s) 64 exit 2 # LSB: invalid or excess argument(s)
65 ;; 65 ;;