-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use inotifywait to watch for changes instead of reloading manually. #75
base: master
Are you sure you want to change the base?
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
apachex
to see if it works for you?Requirements
inotify-tools
package for it to workIssues
Enter
anymoreCtrl+C
does not make a clean shutdown like the enteringq
did before