Skip to content

Manual reloading in version 2.1.12 #2876

Answered by welwood08
mocheryl asked this question in Q&A
Discussion options

You must be logged in to vote

The wording implies manual reloading was at one point possible before v2.1.12, but I don't believe that to be the case.

It's possible since 2.1.10. Please see setupSignalHandler in dnscrypt-proxy/hot_reload.go. In 2.1.12 however you can do it only with enable_hot_reload option set to true because otherwise the calling function InitHotReload exits before calling the signals listener.

[...] the usual way to trigger a background service to reload configuration on a UNIX-like system is via a signal such as SIGHUP or SIGUSR1/2. I'm not sure how cross-platform that is off the top of my head though

Exactly. I'm not sure about cross-platform either, but I use the existing manual reloading fu…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@mocheryl
Comment options

@lifenjoiner
Comment options

@mocheryl
Comment options

@lifenjoiner
Comment options

Comment options

You must be logged in to vote
4 replies
@lifenjoiner
Comment options

@welwood08
Comment options

@lifenjoiner
Comment options

@mocheryl
Comment options

Answer selected by mocheryl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants