From bdc132780ad9f16ffd12f687599b47f1e0775022 Mon Sep 17 00:00:00 2001 From: James Davidson Date: Fri, 3 Aug 2012 09:14:44 -0700 Subject: Restart rsyslog when system time-zone changes Without this change the system log daemon does not notice the time-zone change and continues to timestamp logs using the previous time-zone. Fixes BZ6694 --- templates/system/time-zone/node.def | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates/system/time-zone/node.def') diff --git a/templates/system/time-zone/node.def b/templates/system/time-zone/node.def index ec3b430a..bbdc2a15 100644 --- a/templates/system/time-zone/node.def +++ b/templates/system/time-zone/node.def @@ -48,6 +48,9 @@ allowed: shopt -s nullglob echo \"$zz\" fi done +end: if [ "$COMMIT_ACTION" == "SET" -o "$COMMIT_ACTION" == "DELETE" ]; then + sudo /etc/init.d/rsyslog restart + fi comp_help:Enter the local timezone by specifying "Region/City" Use auto-completion to see available regions and cities. Start with one of these regions: -- cgit v1.2.3