git.annexia.org
/
whenjobs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4613020
)
Implement whenjobs --daemon-start and --daemon-restart flags.
author
Richard W.M. Jones
<rjones@redhat.com>
Sat, 10 Mar 2012 13:58:22 +0000
(13:58 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Sat, 10 Mar 2012 13:58:43 +0000
(13:58 +0000)
tools/whenjobs.ml
patch
|
blob
|
history
diff --git
a/tools/whenjobs.ml
b/tools/whenjobs.ml
index
db32eaf
..
f77e825
100644
(file)
--- a/
tools/whenjobs.ml
+++ b/
tools/whenjobs.ml
@@
-407,7
+407,7
@@
and list_variables () =
stop_client client
and daemon_start () =
- assert false
+ exit (Sys.command "whenjobsd")
and daemon_stop () =
let client = start_client () in
@@
-421,7
+421,14
@@
and daemon_stop () =
stop_client client
and daemon_restart () =
- assert false
+ (try
+ let client = start_client_no_exit () in
+ ignore (Whenproto_clnt.When.V1.exit_daemon client ());
+ stop_client client
+ with _ -> ()
+ );
+ sleep 1;
+ daemon_start ()
and daemon_status () =
let r =