File:  [ELWIX - Embedded LightWeight unIX -] / elwix / config / etc / uboot / rc.d / 029.syslogd.run
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Mon Sep 15 19:06:52 2014 UTC (10 years, 3 months ago) by misho
Branches: MAIN
CVS tags: elwix2_8, elwix2_7, elwix2_6, elwix2_3, HEAD, ELWIX2_7, ELWIX2_6, ELWIX2_5, ELWIX2_2p0
elwix 2.2

#!/bin/sh

syslogd_check()
{
	(
	umask 022
	if [ -f /etc/syslog.conf ]; then
		syslogd -s -f /etc/syslog.conf -p /var/run/syslogd.sockets \
			-l /var/run/log
	else
		echo "Syslog config file is unavaliable!"
		echo "Please create /etc/syslog.conf."
		echo "The syslogd did not start."
	fi
	)
}

echo "Starting Syslogd..."

syslogd_check

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>