trifid/tfclient/src/service/mod.rs

12 lines
359 B
Rust
Raw Normal View History

use std::error::Error;
use std::path::PathBuf;
pub mod codegen;
pub mod systemd;
pub trait ServiceManager {
fn install(bin_path: PathBuf, name: &str) -> Result<(), Box<dyn Error>>;
fn uninstall(name: &str) -> Result<(), Box<dyn Error>>;
fn start(name: &str) -> Result<(), Box<dyn Error>>;
fn stop(name: &str) -> Result<(), Box<dyn Error>>;
}