diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-23 09:03:02 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-05-23 09:03:02 -0400 |
commit | b22fc3f433f91e1c893122794415f0f61f08e95c (patch) | |
tree | 17bf79a22cbffd44fe16f566fb8d5b07fcfb147c /src/main.rs | |
parent | 42d1dcc48bfee8b0c33371861d3f4af72c13a1c3 (diff) |
systemd: Very bad parsing of systemd jobs
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 368beb3..5f9009f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -82,7 +82,12 @@ fn hello(r: &mut Request) -> IronResult<Response> { res } +extern crate systemhttp; fn main() { + use systemhttp::systemd::job; + let u = job::get_jobs().unwrap(); + println!("{:?}", u); + env_logger::init().unwrap(); let secret = b"secret2".to_vec(); let router = router!( |