Timeline for How to implement a server application that can reload configuration without restart
Current License: CC BY-SA 4.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 8 at 11:17 | review | Close votes | |||
| Apr 13 at 3:03 | |||||
| Mar 27 at 11:27 | history | protected | gnat | ||
| Mar 18 at 7:38 | vote | accept | luator | ||
| Mar 13 at 18:28 | answer | added | Bangalore Web Guru | timeline score: -1 | |
| Mar 13 at 16:34 | answer | added | Arseni Mourzenko | timeline score: 2 | |
| Mar 13 at 1:11 | comment | added | Flater | Keeping it as a comment because my experience is neither with Python nor Linux, but the .NET way of doing this on Windows is to have a file watcher, which sends out triggers whenever a specific (watched) file on disk gets updated. It's always possible to fix this yourself by doing a polling-style approach where you make your own trigger to reload the file, but if there's a way to hook into an existing (and more accurate) trigger, I'd suggest going that way. | |
| Mar 12 at 13:06 | comment | added | amon | By convention, SIGHUP is also frequently used to indicate that a non-interactive program should reload its config. But in practice, you can use any IPC mechanism. Signals, flags in shared memory, watching files, sockets, … | |
| Mar 12 at 10:57 | comment | added | Kilian Foth | The official documentation says "set aside for you to use any way you want", so apparently yes. | |
| Mar 12 at 10:04 | comment | added | luator | @KilianFoth I see. So I guess on Linux I would use SIGUSR1 or 2 for this? | |
| Mar 12 at 9:50 | history | edited | luator |
edited tags
|
|
| Mar 12 at 9:49 | comment | added | Kilian Foth | Telling a running program to perform some action is usually done by sending a signal to the underlying process and programming a signal handler in the code to do whatever the appropriate action is. Since this is more OS-dependent than language-dependent, you should probably tag your question with the platform you're using. | |
| Mar 12 at 9:44 | history | edited | luator | CC BY-SA 4.0 |
Clarify the nature of the server.
|
| Mar 12 at 9:11 | review | Close votes | |||
| Mar 17 at 3:07 | |||||
| S Mar 12 at 8:42 | review | First questions | |||
| Mar 13 at 10:49 | |||||
| S Mar 12 at 8:42 | history | asked | luator | CC BY-SA 4.0 |