#! /bin/sh
#------------------------------------------------------------------------------
# part of the sn-package for eisfair
# run the news daemon
# last update: 2003/09/10
# (c) 2001-2003 by Christian Würdig (eisfair@chriswue.de)
#------------------------------------------------------------------------------

runpath="/var/run/sn"
sn_log_dir=`cat $runpath/sn_log_dir`
sn_nntpd_log=`cat $runpath/sn_nntpd_log`

if [ -f "$runpath/sn_auth" ]; then
   options="-S"
fi

if [ -f "$runpath/sn_do_debug" ]; then
   options="$options -d -d -d"
fi

POSTING_OK=1; export POSTING_OK
/usr/local/sn/snntpd $options 2>>$sn_log_dir/$sn_nntpd_log
