Use inotifywait to watch for changes instead of reloading manually.#75
Use inotifywait to watch for changes instead of reloading manually.#75studersi wants to merge 16 commits intodune73:masterfrom
Conversation
|
Thanks. Looks like fun. I have a few issues with this PR, though. Please fix these. Dependency checkThe error message for missing inotify package is rather ugly. There should be a dependency check with a nice error message and the help as well as the inline documentation should explain the dependency. Ctrl-C combinationThe Ctrl-C combination is only explained from the 2nd call Missing config checkIf you make an error in the config and save it, the server is stopped and can no longer be started. Verbosity and transparenceThe script ought to be more transparent and verbose with what it does. I have something in mind like the following. You can also make this optional via a |
|
Good suggestions. The current version is more of a PoC than anything else but now that it appears to work, I'll look into streamlining it as you suggested. I was even thinking of adding a manual mode ( |
|
Yep, thought so. I like the -m switch idea to revert back to the former behaviour. |
|
Great, I'll start working on it some time this week. |
|
[x] It is not possible to manually restart the server by pressing (This checklist will be updated according to progress) |
|
This version of The new features include:
This branch is now ready for merging. |
|
I refactored the argument parsing a bit. It is now possible to use Also, I added the flag |
Can you try out this version of
apachexto see if it works for you?Requirements
inotify-toolspackage for it to workIssues
EnteranymoreCtrl+Cdoes not make a clean shutdown like the enteringqdid before