diff options
Diffstat (limited to 'os-plugins/plugins/syslog/init-hooks/95-cleanup/syslog.sh')
-rw-r--r-- | os-plugins/plugins/syslog/init-hooks/95-cleanup/syslog.sh | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/os-plugins/plugins/syslog/init-hooks/95-cleanup/syslog.sh b/os-plugins/plugins/syslog/init-hooks/95-cleanup/syslog.sh index 3e112ff7..08076c34 100644 --- a/os-plugins/plugins/syslog/init-hooks/95-cleanup/syslog.sh +++ b/os-plugins/plugins/syslog/init-hooks/95-cleanup/syslog.sh @@ -1,10 +1,12 @@ 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 + . /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) + if [ -e /mnt/etc/init.d/boot.klog ]; then + rm /mnt/etc/init.d/boot.d/*.klog fi + fi fi |