#!/sbin/sh
# 
# $Copyright
# Copyright 1993, 1994, 1995  Intel Corporation
# INTEL CONFIDENTIAL
# The technical data and computer software contained herein are subject
# to the copyright notices; trademarks; and use and disclosure
# restrictions identified in the file located in /etc/copyright on
# this system.
# Copyright$
# 
 
#
# (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
# ALL RIGHTS RESERVED
#
#
# OSF/1 Release 1.0

PATH=/sbin:/usr/sbin:/usr/bin
export PATH

case "$1" in
'start')
        set `who -r`
        if [ $9 = "S" ]; then
                if /sbin/syslogd; then
                        echo "System error logger started"
                else
                        echo "Cannot start system error logger"
                fi
        fi
        ;;
'stop')
        if [ -r /var/run/syslog.pid ]; then
                kill `cat /var/run/syslog.pid`
        else
                echo "ERROR: cannot find /var/run/syslog.pid to kill syslogd."
        fi
        ;;
*)
        echo "usage: $0 {start|stop}"
        ;;
esac


