From 23f5b3083f20cf6e8803dabbae30c9acc626ae3b Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 19 Jan 2017 16:56:06 +0100 Subject: [PATCH] restart syslog after boot on kfreebsd --- modules/debian-org/templates/rc.local.erb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/debian-org/templates/rc.local.erb b/modules/debian-org/templates/rc.local.erb index d835b61dc..b3d13dc02 100755 --- a/modules/debian-org/templates/rc.local.erb +++ b/modules/debian-org/templates/rc.local.erb @@ -12,6 +12,13 @@ mkswap /dev/dasdc1 && swapon -p 30 /dev/dasdc1 fi <%- end -%> +<% if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture') and scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0].start_with?('kfreebsd') -%> + ( sleep 120; + service syslog-ng restart; + sleep 5; + init q + ) & disown +<%- end -%> if [ -e /proc/sys/kernel/modules_disabled ]; then ( sleep 60; -- 2.20.1