comparison debian/init @ 435:aae1f2906cea noffle

[svn] updated init script output
author godisch
date Tue, 24 Jun 2003 10:28:18 +0100
parents 863270a06774
children fc3e4fc0a88d
comparison
equal deleted inserted replaced
434:460e242dec29 435:aae1f2906cea
1 #!/bin/sh 1 #!/bin/sh
2 # $Id: init 523 2003-04-18 19:52:16Z godisch $ 2 # $Id: init 578 2003-06-24 09:28:18Z 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"
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 ;; 41 ;;
41 stop) 42 stop)
42 echo -n "Switching offline news server into offline mode: " 43 echo -n "Switching offline news server into offline mode: "
43 $NOFFLE --offline 44 $NOFFLE --offline
45 echo "."
44 ;; 46 ;;
45 restart) 47 restart)
46 echo -n "Restarting offline news server: noffle" 48 echo "No action done, as noffle is restarted upon each query."
47 ;; 49 ;;
48 reload|force-reload) 50 reload|force-reload)
49 echo -n "Reloading offline news server configuration: noffle" 51 echo "No action done, as noffle reloads its configuration upon each query."
50 ;; 52 ;;
51 status) 53 status)
52 help 54 help
53 exit 4 # LSB: program or service status is unknown 55 exit 4 # LSB: program or service status is unknown
54 ;; 56 ;;
55 online|offline) 57 online|offline)
56 echo -n "Switching offline news server into $1 mode: " 58 echo -n "Switching offline news server into $1 mode: "
57 $NOFFLE --$1 59 $NOFFLE --$1
60 echo "."
58 ;; 61 ;;
59 *) 62 *)
60 help 63 help
61 exit 2 # LSB: invalid or excess argument(s) 64 exit 2 # LSB: invalid or excess argument(s)
62 ;; 65 ;;
63 esac 66 esac
64 echo "."
65 67
66 exit 0 68 exit 0