#!/usr/bin/sh #---------------------------------------------------------------------------- # /usr/sbin/nntpd - run the news daemon # # Creation : 2001 chriswue # Last update: $Id$ # # Copyright (c) 2001-2003 by Christian Wuerdig eisfair(at)chriswue(dot)de # Copyright (c) 2010-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- . /var/lib/sn/sn.info . /etc/sysconfig/sn sn_do_debug=${SN_DO_DEBUG} if [ "${sn_do_debug:-no}" = "yes" ] then options="${options} -d -d -d" fi if [ "${NNTP_SERVER}" = "snntpd" ] then POSTING_OK=1; export POSTING_OK /usr/sbin/snntpd ${SN_USER} ${options} 2>>${SN_LOG_DIR}/${SN_NNTPD_LOG} elif [ "${NNTP_SERVER}" = "snauth" ] then /usr/sbin/in.snauth ${options} sleep 5 # run the fetch command after auth action /var/install/bin/sn-gn news fi # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------