summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJames Davidson <james.davidson@vyatta.com>2012-08-03 09:14:44 -0700
committerJames Davidson <james.davidson@vyatta.com>2012-08-03 09:14:44 -0700
commitbdc132780ad9f16ffd12f687599b47f1e0775022 (patch)
treea1e0d88116fdccd2f17c14231840ae9596be1cce /templates
parent55b42ffa9177202d2bfe52b2871913cca12217ff (diff)
downloadvyatta-cfg-system-bdc132780ad9f16ffd12f687599b47f1e0775022.tar.gz
vyatta-cfg-system-bdc132780ad9f16ffd12f687599b47f1e0775022.zip
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
Diffstat (limited to 'templates')
-rw-r--r--templates/system/time-zone/node.def3
1 files changed, 3 insertions, 0 deletions
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: