Mercurial > noffle
comparison debian/init @ 442:fc3e4fc0a88d noffle
[svn] update
author | godisch |
---|---|
date | Wed, 25 Jun 2003 16:34:53 +0100 |
parents | aae1f2906cea |
children | fb4e5f59f4a7 |
comparison
equal
deleted
inserted
replaced
441:28949d048822 | 442:fc3e4fc0a88d |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: init 578 2003-06-24 09:28:18Z godisch $ | 2 # $Id: init 585 2003-06-25 15:34:53Z 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" |
31 | 31 |
32 case "$1" in | 32 case "$1" in |
33 start) | 33 start) |
34 echo -n "Initializing offline news server: " | 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 echo "." | 40 echo "." |
41 ;; | 41 ;; |
42 stop) | 42 stop) |
43 echo -n "Switching offline news server into offline mode: " | 43 echo -n "Switching offline news server into offline mode: " |
44 $NOFFLE --offline | 44 "$NOFFLE" --offline |
45 echo "." | 45 echo "." |
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 ;; |
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 -n "Switching offline news server into $1 mode: " |
59 $NOFFLE --$1 | 59 "$NOFFLE" --$1 |
60 echo "." | 60 echo "." |
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) |