Refactor #11323
closedRefactor PID writing, interrupt trap and daemon logging
Description
Currently, our deamonizing works as follows:
- initialize configuration, logger and plugins
- create http/https rack servers
- daemonize the main process
- start rack servers in own threads (each writes own pid file into same file)
- wait five seconds
- override interrupt signal trap
- wait for both threads to finish
Problems:
- Rack writes main process pid twice (the main process should do this on its own)
- pid file is written AFTER the main process exited (this is causing irregular warnings with systemd "not readable (yet?) after start")
- we should get rid of the 5 seconds sleep (what is this needed for)?
- when logging is setup to STDOUT it does not work (we need to error out when STDOUT is set and provide a way to configure foreman-proxy with syslog properly)
Updated by Lukas Zapletal over 9 years ago
- Subject changed from Refactor proxy daemonizing code to Refactor PID writing, interrupt trap and daemon logging
Updated by The Foreman Bot over 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/smart-proxy/pull/311 added
- Pull request deleted (
)
Updated by Dominic Cleal about 9 years ago
- Category set to Core
- Translation missing: en.field_release set to 63
Updated by Anonymous about 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 335a1610fae8cd74720e2d9841d904deb8ff1881.
Updated by Dominic Cleal about 9 years ago
- Related to Bug #11653: stdout warning about use of "SYSLOG" logger on every startup added
Updated by Dominic Cleal about 9 years ago
- Related to Bug #11654: Error logged: Unable to overwrite interrupt trap: undefined method `version' for nil:NilClass added
Updated by Lukas Zapletal about 9 years ago
- Related to Feature #676: Syslog support added
Updated by Lukas Zapletal about 9 years ago
- Related to Refactor #12402: Configure proxy with syslog by default added
Updated by Anonymous over 8 years ago
- Related to Bug #2174: Wrong log settings should have the proxy terminate on startup added