Merge pull request 'Update go-sbot systemctl commands (remove --user)' (#132) from fix_systemctl_calls into main
Reviewed-on: #132
This commit is contained in:
commit
6407495292
|
@ -2322,7 +2322,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "peach-stats"
|
name = "peach-stats"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"log 0.4.17",
|
"log 0.4.17",
|
||||||
"miniserde",
|
"miniserde",
|
||||||
|
@ -2407,7 +2407,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f77e66f6d6d898cbbd4a09c48fd3507cfc210b7c83055de02a38b5f7a1e6d216"
|
checksum = "f77e66f6d6d898cbbd4a09c48fd3507cfc210b7c83055de02a38b5f7a1e6d216"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
"time 0.3.11",
|
"time 0.1.44",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "peach-stats"
|
name = "peach-stats"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
authors = ["Andrew Reid <glyph@mycelial.technology>"]
|
authors = ["Andrew Reid <glyph@mycelial.technology>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "Query system statistics. Provides a wrapper around the probes and systemstat crates."
|
description = "Query system statistics. Provides a wrapper around the probes and systemstat crates."
|
||||||
|
|
|
@ -44,8 +44,8 @@ impl SbotStat {
|
||||||
pub fn sbot_stats() -> Result<SbotStat, StatsError> {
|
pub fn sbot_stats() -> Result<SbotStat, StatsError> {
|
||||||
let mut status = SbotStat::default();
|
let mut status = SbotStat::default();
|
||||||
|
|
||||||
let info_output = Command::new("/usr/bin/systemctl")
|
let info_output = Command::new("sudo")
|
||||||
.arg("--user")
|
.arg("systemctl")
|
||||||
.arg("show")
|
.arg("show")
|
||||||
.arg("go-sbot.service")
|
.arg("go-sbot.service")
|
||||||
.arg("--no-page")
|
.arg("--no-page")
|
||||||
|
@ -66,8 +66,8 @@ pub fn sbot_stats() -> Result<SbotStat, StatsError> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let status_output = Command::new("/usr/bin/systemctl")
|
let status_output = Command::new("sudo")
|
||||||
.arg("--user")
|
.arg("systemctl")
|
||||||
.arg("status")
|
.arg("status")
|
||||||
.arg("go-sbot.service")
|
.arg("go-sbot.service")
|
||||||
.output()
|
.output()
|
||||||
|
|
Loading…
Reference in New Issue