diff --git a/peach-stats/src/sbot.rs b/peach-stats/src/sbot.rs index ce4de0b..dbcf58b 100644 --- a/peach-stats/src/sbot.rs +++ b/peach-stats/src/sbot.rs @@ -44,8 +44,8 @@ impl SbotStat { pub fn sbot_stats() -> Result { let mut status = SbotStat::default(); - let info_output = Command::new("/usr/bin/systemctl") - .arg("--user") + let info_output = Command::new("sudo") + .arg("systemctl") .arg("show") .arg("go-sbot.service") .arg("--no-page") @@ -66,8 +66,8 @@ pub fn sbot_stats() -> Result { } } - let status_output = Command::new("/usr/bin/systemctl") - .arg("--user") + let status_output = Command::new("sudo") + .arg("systemctl") .arg("status") .arg("go-sbot.service") .output()