summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/syslog/init-hooks/95-cleanup/syslog.sh
blob: 3e112ff7c346c7d24b2c1e870eb7c5a70da4417c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
if [ -e /initramfs/plugin-conf/syslog.conf ]; then
    . /initramfs/plugin-conf/syslog.conf
    if [ $syslog_active -ne 0 ] && [ -n "$syslog_host" ]; then
        # kill syslogd, as it is going to be replaced by system's syslog soon
        killall syslogd
        # remove links to boot.klog, as that will hang (I suppose that is 
        # because we already emptied /dev/kmsg)
        rm /mnt/etc/init.d/boot.d/*.klog
    fi
fi