Mercurial > noffle
view debian/init @ 357:b0ee77fa24d4 noffle
[svn] * src/post.c,src/configfile.c,src/configfile.h,docs/noffle.conf.5,
noffle.conf.example,TODO: Added a config value to specify whether
a Reply-To header should be appended to messages posted without it.
Also made the new option show up in the noffle.conf manpage and the
initial example configuration shipped with the package.
author | bears |
---|---|
date | Mon, 24 Mar 2003 23:32:48 +0000 |
parents | 8f8db12ae359 |
children | 82457f16cf43 |
line wrap: on
line source
#!/bin/sh # $Id: init 477 2003-03-04 22:16:42Z 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 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