servicer-labs / servicer

A CLI to simplify service management on systemd
https://servicer.dev
MIT License
427 stars 9 forks source link

Unclear readme: how to start a service of a rust process? #10

Closed ethereumdegen closed 12 months ago

ethereumdegen commented 1 year ago

I have a rust application that i normally run with 'cargo run' so how can i use servicer with it ?

ethereumdegen commented 1 year ago

this is weird hm

thread 'main' panicked at 'No interpeter found for extension rs. Please provide a custom interpeter and try again.', /home/andy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/servicer-0.1.12/src/handlers/handle_create_service.rs:129:20 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

why cant it assume i am using cargo ?

secretshardul commented 1 year ago

You should first build the binary, then run servicer. Do you have a hard requirement to use cargo run? ser edit might better help if that's the case.

cargo build
sudo ser create ./target/release/my-binary