#!/bin/sh # # run - runit startup script for syslog-ng # # Developed by Lubomir Host 'rajo' # Copyright (c) 2005 Platon SDG, http://platon.sk/ # Licensed under terms of GNU General Public License. # All rights reserved. # # Changelog: # 2005-05-12 - created # # $Platon$ SYSLOGNG="/sbin/syslog-ng" PATH=/sbin:/bin:/usr/sbin:/usr/bin # log level of messages which should go to console # see klogctl(8) or for details CONSOLE_LOG_LEVEL=5 # Size of the kernel ring buffer used to hold kernel # messages. KERNEL_RINGBUF_SIZE=16392 test -f /sbin/syslog-ng || exit 0 #we source /etc/default/syslog-ng if exists [ -r /etc/default/syslog-ng ] && . /etc/default/syslog-ng case "x$CONSOLE_LOG_LEVEL" in x[0-7]) dmesg -n $CONSOLE_LOG_LEVEL > /dev/null ;; *) echo "CONSOLE_LOG_LEVEL is of unaccepted value." ;; esac case "x$KERNEL_RINGBUF_SIZE" in x[0-9]*) dmesg -s $KERNEL_RINGBUF_SIZE > /dev/null ;; *) echo "KERNEL_RINGBUF_SIZE is of unaccepted value." ;; esac exec $SYSLOGNG -F -p /dev/null