#! /bin/sh #------------------------------------------------------------------------------ # part of the sn-package for eisfair # print status information # last update: 2003/09/11 # (c) 2001-2003 by Christian Würdig (eisfair@chriswue.de) #------------------------------------------------------------------------------ status_xinetd="dead" if [ -f "/var/run/xinetd.pid" ]; then pid_xinetd=`cat /var/run/xinetd.pid 2>/dev/null` if [ "$pid_xinetd" != "" ]; then kill -0 $pid_xinetd if [ $? = 0 ]; then status_xinetd="alive" fi fi fi active="no" grep "disable = no" /etc/xinetd.d/nntp >/dev/null if [ "$?" = 0 ]; then active="yes" fi if [ "$status_xinetd" = "alive" ]; then if [ "$active" = "yes" ]; then echo "snntpd is running" echo "`ps -A | grep -c snntpd` user(s) logged in" else echo "snntpd is not running (disabled in xinetd-config)" fi else if [ "$active" = "yes" ]; then echo "snntpd is not running (xinetd is not running)" else echo "snntpd is not running (disabled in xinetd-config and xinetd is not running)" fi fi echo /var/install/bin/anykey exit 0