#!/bin/sh
#
# (C) Copyright 1993, 1994 Mike Jagdis (jaggy@purplet.demon.co.uk)
#

. /etc/init.d/LIB

killall=`pathof killall /bin:/usr/bin`


case "$1" in
	start)	# If we can find a syslogd out there and it doesn't seem
		# to be running at the moment then fire it up.
		it=`pathof syslogd /sbin:/etc/daemons:/etc:/usr/sbin:/usr/etc:/usr/daemons`
		if [ -n "$it" ]; then
			if $killall -0 syslogd 2> /dev/null; then
				: already running
			else
				$it
			fi
		fi
		;;

	stop)
		if wipeout syslogd; then
			echo "Syslogd stopped"
		else
			echo "Syslogd wasn't running"
		fi
		;;

	*)	echo "usage: syslog start|stop"
		exit 1
		;;
esac
