#------------------------------------------------------------------------------ # /etc/rc.d/rc325.syslogd - start syslogd # was file /etc/rc.d/syslogd # # Creation: 29.08.2000 fm # Last Update: $Id$ #------------------------------------------------------------------------------ if [ "$OPT_SYSLOGD" = yes ] then begin_script SYSLOGD "starting syslogd ..." cat <<-EOF>>/etc/services syslog 514/udp EOF if [ ! -f /etc/syslog.conf ] # already existing? then # yes, don't overwrite [ "$SYSLOGD_DEST_N" -eq 0 ] || for idx in `seq 1 $SYSLOGD_DEST_N` do eval dest='$SYSLOGD_DEST_'$idx echo "$dest" >> /etc/syslog.conf dest=`echo "$dest" | sed -n -e 's#^.*[[:space:]]\+##;s#/[^/]\+$##p'` case "$dest" in /dev) ;; /*) mkdir -p $dest ;; esac done fi if [ "$SYSLOGD_RECEIVER" = yes ] then syslogd -r else syslogd fi sleep 1 end_script if [ "$SYSLOGD_ROTATE" = yes ] then begin_script SYSLOGD_ROTATE "starting syslogd-scheduler ..." echo "SYSLOGD_ROTATE_DIR='$SYSLOGD_ROTATE_DIR'" > /var/run/syslogd_rotate.conf service-restart.sh 60 /usr/local/bin/syslogd_rotate_cron.sh & end_script fi fi