-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Cleanup on stopping agent (#382)
* ♻️ Dry up start and exec commands Both of these commands start and stop in the same way, and all commands can benefit from handling termination events * fix: 🐛 Suppress error when a PID file does not exist * fix: 🐛 Cleanup PID file when start command is terminated (#340) When sigterm and friends are recieved, the server gets stopped but leaves behind the PID file which causes future runs to think there is already a running agent. With the recent adjustments to how termination events are handled, we can safely cleanup that file in the stop method. * fix: 🐛 Catch error from child process event and stop agent * fix: 🐛 Add process handlers to static snapshot command
- Loading branch information
Wil Wilsman
authored
Oct 1, 2019
1 parent
c1d5747
commit cc28320
Showing
5 changed files
with
61 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters