Skip to main content

scope_slice_problem

Function scope_slice_problem 

Source
pub fn scope_slice_problem(name: &str) -> Option<&'static str>
Expand description

Why name can’t be a tool_scope_slice / daemon_scope_slice value, or None if it can. A slice unit name: at most 255 bytes, ending in .slice, only [A-Za-z0-9:_.-] (so no /), not starting with - and not the root slice -.slice; as in systemd’s own check, the part before .slice is not empty, has no -- and doesn’t end in - (a - separates the parent slices: synaps-tools.slice nests under synaps.slice). The config file is not TOML, so a quoted value keeps its quotes and gets its own hint. An empty value never reaches this check: the parser takes it as “unset”.