Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System timezone changes does not "take" in Finit #139

Closed
troglobit opened this issue Nov 9, 2020 · 1 comment
Closed

System timezone changes does not "take" in Finit #139

troglobit opened this issue Nov 9, 2020 · 1 comment
Assignees
Milestone

Comments

@troglobit
Copy link
Owner

Westermo reports; changing the timezone of the system does not "take" in Finit. It continues logging starting/stopping processes with the default timezone.

Nov 3 16:29:04 FITIND01 linkd[2181]: Link up on eth26
Nov 3 16:29:04 FITIND01 linkd[2181]: Link up on eth15
Nov 3 16:29:04 FITIND01 linkd[2181]: Link up on lag0
Nov 3 06:29:04 FITIND01 finit[1]: Stopping teamdagentd:1, PID: 2735, sending SIGTERM...
Nov 3 06:29:04 FITIND01 finit[1]: Starting teamdagentd:1, PID: 2916
Nov 3 06:29:04 FITIND01 finit[1]: Starting dnsmasq:1, PID: 2917
@troglobit
Copy link
Owner Author

Best proposal so far is to call tzset() in the reload callback.

@troglobit troglobit added this to the v4.0 milestone Feb 10, 2021
andreasegeberg pushed a commit that referenced this issue Feb 15, 2021
The tzset() function sets the global variables 'daylight', 'timezone' and 'tzname'
according to the value of the TZ environment variable, or to the value of the
_CS_TIMEZONE configuration string if TZ isn't set, or to UTC0 if neither is set.
andreasegeberg pushed a commit that referenced this issue Feb 15, 2021
The tzset() function sets the global variables 'daylight', 'timezone' and 'tzname'
according to the value of the TZ environment variable, or to the value of the
_CS_TIMEZONE configuration string if TZ isn't set, or to UTC0 if neither is set.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
andreasegeberg pushed a commit that referenced this issue Feb 15, 2021
The tzset() function sets the global variables 'daylight', 'timezone' and 'tzname'
according to the value of the TZ environment variable, or to the value of the
_CS_TIMEZONE configuration string if TZ isn't set, or to UTC0 if neither is set.

Signed-off-by: Andreas Egeberg <andreas.egeberg@gmail.com>
troglobit added a commit that referenced this issue Feb 15, 2021
Fix #139: System timezone changes does not 'take' in Finit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants