Mercurial > noffle
comparison debian/init @ 383:863270a06774 noffle
[svn] fixed output
author | godisch |
---|---|
date | Fri, 18 Apr 2003 20:52:16 +0100 |
parents | 11cca625263f |
children | aae1f2906cea |
comparison
equal
deleted
inserted
replaced
382:9ab98c030b05 | 383:863270a06774 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: init 514 2003-04-02 21:59:58Z godisch $ | 2 # $Id: init 523 2003-04-18 19:52:16Z 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: noffle" | 34 echo -n "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 ;; | 40 ;; |
41 stop) | 41 stop) |
42 echo -n "Switching offline news server into offline mode: noffle" | 42 echo -n "Switching offline news server into offline mode: " |
43 $NOFFLE --offline | 43 $NOFFLE --offline |
44 ;; | 44 ;; |
45 restart) | 45 restart) |
46 echo -n "Restarting offline news server: noffle" | 46 echo -n "Restarting offline news server: noffle" |
47 ;; | 47 ;; |
51 status) | 51 status) |
52 help | 52 help |
53 exit 4 # LSB: program or service status is unknown | 53 exit 4 # LSB: program or service status is unknown |
54 ;; | 54 ;; |
55 online|offline) | 55 online|offline) |
56 echo -n "Switching offline news server into $1 mode: noffle" | 56 echo -n "Switching offline news server into $1 mode: " |
57 $NOFFLE --$1 | 57 $NOFFLE --$1 |
58 ;; | 58 ;; |
59 *) | 59 *) |
60 help | 60 help |
61 exit 2 # LSB: invalid or excess argument(s) | 61 exit 2 # LSB: invalid or excess argument(s) |