diff options
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/unit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemd/unit.rs b/src/systemd/unit.rs index 22752cb..116ffdb 100644 --- a/src/systemd/unit.rs +++ b/src/systemd/unit.rs @@ -60,10 +60,10 @@ fn test_make_unit() { assert_eq!(None, make_unit(info)); } -pub fn get_units() -> io::Result<Vec<Unit>> { +pub fn get_units(filter: &str) -> io::Result<Vec<Unit>> { let mut units = Vec::new(); let status = try!(Command::new("systemctl") - .args(&["show", "*"]).output()); + .args(&["show", filter]).output()); let mut unit_info = HashMap::new(); for line in String::from_utf8_lossy(&status.stdout).split('\n') { |