pub struct Service {
pub name: String,
pub exec: String,
pub body: Option<String>,
pub restart: RestartPolicy,
pub env: Vec<(String, String)>,
pub workdir: Option<String>,
pub enable: bool,
}Fields§
§name: String§exec: StringCommand line. Shell-unescaped; split on whitespace for argv.
Ignored when body is present (tatara-init synthesizes the exec
line to invoke its own --eval subcommand with the body form).
body: Option<String>Tatara-lisp form evaluated by tatara-init’s embedded interpreter.
When set, tatara-init’s supervisor spawns /bin/tatara-init --eval '<form>' as the service — no shell, no external binary, just our
own tatara-eval loop running in a forked child.
restart: RestartPolicyHow to react to exits.
env: Vec<(String, String)>Environment pairs.
workdir: Option<String>Optional working directory. Defaults to /.
enable: boolAuto-start at boot? Default true.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Service
impl<'de> Deserialize<'de> for Service
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Service
impl StructuralPartialEq for Service
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnsafeUnpin for Service
impl UnwindSafe for Service
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more