Mercurial > noffle
view debian/init @ 302:4f4c233374ca noffle
[svn] removed sed
author | godisch |
---|---|
date | Sat, 15 Feb 2003 21:34:21 +0000 |
parents | 3b5b7f3fd71f |
children | 399ccb5e641b |
line wrap: on
line source
#!/bin/sh # $Id: init 434 2003-02-14 13:54:32Z godisch $ PATH=/bin:/usr/bin:/sbin:/usr/sbin NOFFLE=/usr/bin/noffle if [ -x /usr/sbin/pppd ]; then NOFFLE_FETCHMODE="ppp" else NOFFLE_FETCHMODE="cron" fi [ -f /etc/default/noffle ] && . /etc/default/noffle [ -x "$NOFFLE" ] || exit 0 case "$1" in start) echo "Initializing offline news server: noffle." [ "$NOFFLE_FETCHMODE" = ppp ] && $NOFFLE --offline [ "$NOFFLE_FETCHMODE" = cron ] && $NOFFLE --online ;; stop) echo "Stopping offline news server: noffle." $NOFFLE --offline ;; online) echo "Starting offline news server: noffle." $NOFFLE --online ;; offline) echo "Stopping offline news server: noffle." $NOFFLE --offline ;; restart|force-reload) $0 start ;; *) echo "Usage: $0 {start|stop}" >&2 exit 1 ;; esac exit 0