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:23:13 -0700 |
commit | 988804905de4588fbacec346939c4d49868a6a48 (patch) | |
tree | 393fac45b9746a323bac7a37c8f5231f713eda0a | |
parent | af97efcb24a1d5eb7a3c39fb9c7708eb7d4ae3ee (diff) | |
download | vyatta-cfg-system-988804905de4588fbacec346939c4d49868a6a48.tar.gz vyatta-cfg-system-988804905de4588fbacec346939c4d49868a6a48.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
-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: |