talaia-labs / rust-teos

The Eye of Satoshi - Lightning Watchtower
https://talaia-labs.github.io/talaia.watch/
MIT License
134 stars 63 forks source link

add option to let `teosd` run as a background daemon #112

Closed carboncls closed 1 year ago

carboncls commented 2 years ago

Would be great to have this option, like python-teos did. It's just so much more convenient! Ideally, the option could be set in the teos.toml file, so it's not needed to be passed on every start up.

sr-gi commented 2 years ago

I had this in mind when working on the rust codebase, but turns out this is not the recommended way to go.

https://stackoverflow.com/questions/61671013/how-to-make-rust-run-gracefully-in-the-background-and-daemonize

I will keep this issue open anyway since it is, actually, something I'd like to add provided we can find an easy and convenient way to do so.

carboncls commented 2 years ago

Oh ok, I see. So I can just use ./webserver start & teosd [OPTION]?

sr-gi commented 2 years ago

No, currently there is no option for it to run on daemon mode, but you can just do something like:

teosd >> log.txt &

And that should do

sr-gi commented 1 year ago

@carboncls https://github.com/talaia-labs/rust-teos/pull/138 may be relevant