Mercurial > noffle
view debian/init @ 334:08222dbe6eb0 noffle
[svn] cleanup
author | godisch |
---|---|
date | Sat, 01 Mar 2003 17:40:38 +0000 |
parents | 399ccb5e641b |
children | 1aa1ed030464 |
line wrap: on
line source
#!/bin/sh # $Id: init 470 2003-03-01 17:40:38Z 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 if [ -f /etc/default/noffle ]; then . /etc/default/noffle fi [ -x "$NOFFLE" ] || exit 0 case "$1" in online|offline) echo "Switching offline news server to $1 mode: noffle." $NOFFLE --$1 ;; start) echo "Initializing offline news server: noffle." if [ "$NOFFLE_FETCHMODE" = ppp ]; then $NOFFLE --offline;; else $NOFFLE --online;; fi ;; stop) $0 offline ;; restart|force-reload) $0 start ;; *) echo "Usage: $0 {start|stop}" >&2 exit 1 ;; esac exit 0