trying to figure out the ideal way to feature gate systemd
This commit is contained in:
parent
9409cae3f1
commit
b096107f81
2 changed files with 16 additions and 13 deletions
|
|
@ -47,6 +47,7 @@ pub fn is_systemd_used() -> &'static bool {
|
|||
)
|
||||
}
|
||||
|
||||
#[cfg(feature = "systemd")]
|
||||
///Spawn a systemd scope unit with the given name and PIDs.
|
||||
pub async fn spawn_scope(mut command: String, pids: Vec<u32>) -> Result<(), zbus::Error> {
|
||||
let connection = Connection::session().await?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue