rust-teos icon indicating copy to clipboard operation
rust-teos copied to clipboard

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

Open carboncls opened this issue 3 years ago • 4 comments

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.

carboncls avatar Aug 30 '22 17:08 carboncls

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.

sr-gi avatar Aug 31 '22 12:08 sr-gi

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

carboncls avatar Sep 01 '22 17:09 carboncls

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 avatar Sep 02 '22 05:09 sr-gi

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

sr-gi avatar Nov 07 '22 11:11 sr-gi