Hi everyone,i tried different ways to have systemd call rust to run in the background, but none of them succeeded.
Let systemd call the shell to execute the cargo run: the error is that it reads only ‘‘cargo’’, but treats ‘run’ as another parameter, so it won’t run.
Use cargo-deb and call it: the error is
thread 'main' panicked at called Option::unwrap() on a None value, src/libcore/option.rs:355:21 and
note: Run with RUST_BACKTRACE=1 for a backtrace.
Is there any better way?
Note: I use iron to set up a web service, enter url to execute cassandra’s query