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

Implement config reloading #531

Merged
merged 1 commit into from
Sep 5, 2024
Merged

Implement config reloading #531

merged 1 commit into from
Sep 5, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Aug 27, 2024

Implement config reloading

The approach here is to pass a channel to InnerMain functions that can be watched for incoming syscall.SIGHUP signals.

To trigger a config reload, run

  • service fleetspeak-client reload on linux
  • launchctl kill SIGHUP system/com.google.code.fleetspeak on mac
  • sc.exe control FleetspeakService paramchange on windows

The default implementation provided simply stops the client and creates another one when a signal is received.

@copybara-service copybara-service bot added the exported Exported change from internal source label Aug 27, 2024
@copybara-service copybara-service bot force-pushed the cl/667959949 branch 5 times, most recently from 6247954 to cc86b9c Compare September 5, 2024 08:43
The approach here is to pass a channel to InnerMain functions that can be watched for incoming `syscall.SIGHUP` signals.

To trigger a config reload, run
- `service fleetspeak-client reload` on linux
- `launchctl kill SIGHUP system/com.google.code.fleetspeak` on mac
- `sc.exe control FleetspeakService paramchange` on windows

The default implementation provided simply stops the client and creates another one when a signal is received.

PiperOrigin-RevId: 671281569
@copybara-service copybara-service bot merged commit 77bf103 into master Sep 5, 2024
@copybara-service copybara-service bot deleted the cl/667959949 branch September 5, 2024 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exported Exported change from internal source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant