diff options
Diffstat (limited to 'news/inn/files/innd.sh')
-rw-r--r-- | news/inn/files/innd.sh | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/news/inn/files/innd.sh b/news/inn/files/innd.sh index 5c04e7d80b2..8734017ab8e 100644 --- a/news/inn/files/innd.sh +++ b/news/inn/files/innd.sh @@ -1,11 +1,24 @@ #!/bin/sh # -# $NetBSD: innd.sh,v 1.15 2008/09/03 20:19:39 spz Exp $ +# $NetBSD: innd.sh,v 1.16 2008/12/21 16:00:04 spz Exp $ # # PROVIDE: inn # REQUIRE: DAEMON # KEYWORD: shutdown +if [ -d @INN_DATA_DIR@/etc ] ; then + echo "" + echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING" + echo "" + echo "WARNING: old inn config directory @INN_DATA_DIR@/etc found" + echo "WARNING: please move your config to @PREFIX@/etc/inn" + echo "WARNING: before starting your new inn install" + echo "" + echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING" + echo "" + sleep 120 +fi + if [ -x @INN_PATHBIN@/rc.news -a -s @INN_DATA_DIR@/db/active ] then if [ ! -f @PREFIX@/etc/nntp/server ] @@ -22,6 +35,12 @@ then fi) fi + if [ -f @INN_DATA_DIR@/db/history -a \ + ! -s @INN_DATA_DIR@/db/history ] + then + @INN_PATHBIN@/makedbz -i -o -s 10000 + fi + if [ $# -eq 0 ] then echo -n ' innd' |