summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2017-05-23 09:03:02 -0400
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2017-05-23 09:03:02 -0400
commitb22fc3f433f91e1c893122794415f0f61f08e95c (patch)
tree17bf79a22cbffd44fe16f566fb8d5b07fcfb147c /src/main.rs
parent42d1dcc48bfee8b0c33371861d3f4af72c13a1c3 (diff)
systemd: Very bad parsing of systemd jobs
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
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!(