-
Notifications
You must be signed in to change notification settings - Fork 95
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
New feature: run mole in background mode #10
Comments
This will be a chore to implement. If someone wanted to take this on, you could look at utilizing https://github.com/sevlyar/go-daemon |
Another good resource about support for daemonize in Go: golang/go#227 |
Can i take this ? |
Sure! Thanks for considering contributing to the project, @tidjungs. Having a command ( Let's assume we will have a flag name One could propose that $ mole -start example1 -detach
INFO[0000] listening on local address local_address="127.0.0.1:52218"
$ mole -stop example1 $ mole -detach -remote :3306 -server my-server |
what about
and Alias case
What do you think ? And I have no idea how to manage structure of pid, log file |
We're getting there... so, every detached mole instance will have an identifier associated with it and the identifier will be generated either from the alias name or random combination of characters. Mole would store information about the detached instances under Examples:
I wouldn't care about handling output redirection right now. The user can always use |
ok I got it |
PR #35 |
Add a
-detach
argument to the CLI to flag the application must be detached from the current terminal and run in background. User should be able to redirectstdout
andstdin
to log files for auditing purposesThe text was updated successfully, but these errors were encountered: