diff options
author | James Davidson <james.davidson@vyatta.com> | 2012-08-03 09:14:44 -0700 |
---|---|---|
committer | James Davidson <james.davidson@vyatta.com> | 2012-08-03 09:14:44 -0700 |
commit | bdc132780ad9f16ffd12f687599b47f1e0775022 (patch) | |
tree | a1e0d88116fdccd2f17c14231840ae9596be1cce /templates | |
parent | 55b42ffa9177202d2bfe52b2871913cca12217ff (diff) | |
download | vyatta-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.def | 3 |
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: |