-
Notifications
You must be signed in to change notification settings - Fork 166
Daemonize #8
Comments
Wrote a upstart script for it ... easy like hell .... |
Yeah, that is how I would handle it too, but the ability to daemonize from cli would be a trivial addition. Would you mind sharing your script for the benefit of others if you have not already? Other solutions include using screen or
However I prefer alternative methods. |
` here that is mine. Save it as geth-etclassic.conf under your homedirectory sudo cp ~/geth-etclassic.conf /etc/init/ to work with it start a geth attach with same user like geth is running |
with screen : screen -S geth-etclassic Press Ctrl(keep pressed) + A + D +Release Crtl to leave screen session. screen -r geth-etclassic |
Thanks, I'm sure those will help others and if I see that question get asked again I can simply link them here. We can also eventually incorporate it into a wiki page or some guide. |
i'd prefer to have this feature embedded into the cli |
I'm still interested in adding the daemon flag or separate daemon binary. If anyone is interested in creating a pull request for this issue, reach out. If no one volunteers I will add these changes before the next release. |
A slightly easier one liner screen command to drop geth into the background Screen ExamplesGeneral startup of client
Start client and unlock first wallet
Attach to screen running geth
Detach from the screen when done
|
Go has issues with deamonizing: golang/go#227 |
NewEnv now returns only environment, error is removed. Files formatted by gofmt
I would have thought that a systemd unit file such as this one: https://gist.github.com/swaldman/e58a866eafc4ff043c4099e394901a1e would be the way to go. Systemd will capture stdout/err and direct it to anywhere you want. By default, it goes to syslog. So perhaps maybe some gists of systemd for linux OS's and launchd for OSX with instructions would satisfy this requirement? I would be happy to do this. |
That sounds great @camstuart. I've used A gist or gists would be very welcome 👍 |
Ok @whilei I'll see what I can do. where would the gists live? this repo? I have never contributed a gist before. is it similar to a PR. If you have a guide, then I'll get up to speed on it. |
I think the gist should be separate from this repo. One solution would be if you create a gist.github.com, then a link to that gist could be included in the wiki at an appropriate spot. Open to other solutions as well. |
Yeah sounds good @whilei, will do |
Users on reddit were asking about this, does not yet seem to be added yet.
ethereum/go-ethereum#2608
It should be easy to add if it does not get added to upstream soon.
The text was updated successfully, but these errors were encountered: