Mercurial > noffle
comparison debian/init @ 303:399ccb5e641b noffle
[svn] clarified init output
author | godisch |
---|---|
date | Sun, 16 Feb 2003 08:47:33 +0000 |
parents | 3b5b7f3fd71f |
children | 08222dbe6eb0 |
comparison
equal
deleted
inserted
replaced
302:4f4c233374ca | 303:399ccb5e641b |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # $Id: init 434 2003-02-14 13:54:32Z godisch $ | 2 # $Id: init 437 2003-02-16 08:47:33Z godisch $ |
3 | 3 |
4 PATH=/bin:/usr/bin:/sbin:/usr/sbin | 4 PATH=/bin:/usr/bin:/sbin:/usr/sbin |
5 | 5 |
6 NOFFLE=/usr/bin/noffle | 6 NOFFLE=/usr/bin/noffle |
7 if [ -x /usr/sbin/pppd ]; then | 7 if [ -x /usr/sbin/pppd ]; then |
12 [ -f /etc/default/noffle ] && . /etc/default/noffle | 12 [ -f /etc/default/noffle ] && . /etc/default/noffle |
13 | 13 |
14 [ -x "$NOFFLE" ] || exit 0 | 14 [ -x "$NOFFLE" ] || exit 0 |
15 | 15 |
16 case "$1" in | 16 case "$1" in |
17 online|offline) | |
18 echo "Switching offline news server to $1 mode: noffle." | |
19 $NOFFLE --$1 | |
20 ;; | |
17 start) | 21 start) |
18 echo "Initializing offline news server: noffle." | 22 echo "Initializing offline news server: noffle." |
19 [ "$NOFFLE_FETCHMODE" = ppp ] && $NOFFLE --offline | 23 [ "$NOFFLE_FETCHMODE" = ppp ] && $NOFFLE --offline |
20 [ "$NOFFLE_FETCHMODE" = cron ] && $NOFFLE --online | 24 [ "$NOFFLE_FETCHMODE" = cron ] && $NOFFLE --online |
21 ;; | 25 ;; |
22 stop) | 26 stop) |
23 echo "Stopping offline news server: noffle." | 27 $0 offline |
24 $NOFFLE --offline | |
25 ;; | |
26 online) | |
27 echo "Starting offline news server: noffle." | |
28 $NOFFLE --online | |
29 ;; | |
30 offline) | |
31 echo "Stopping offline news server: noffle." | |
32 $NOFFLE --offline | |
33 ;; | 28 ;; |
34 restart|force-reload) | 29 restart|force-reload) |
35 $0 start | 30 $0 start |
36 ;; | 31 ;; |
37 *) | 32 *) |