git://git.onelab.eu
/
vsys.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Checking in daemonization, writing to a logfile, and saving the pid
[vsys.git]
/
globals.ml
diff --git
a/globals.ml
b/globals.ml
index
4e2d332
..
e8dca75
100644
(file)
--- a/
globals.ml
+++ b/
globals.ml
@@
-4,7
+4,10
@@
let debug = ref true
let vsys_version = "0.5"
let nochroot = ref false
let conffile = ref ""
let vsys_version = "0.5"
let nochroot = ref false
let conffile = ref ""
+let pid_filepath = ref "/var/run/vsys.pid"
+let log_filepath = ref "/var/log/vsys"
+let logfd = open_out_gen [Open_append;Open_creat] 0o644 !log_filepath
type result = Success | Failed
type fname_and_fd = string option * Unix.file_descr
type result = Success | Failed
type fname_and_fd = string option * Unix.file_descr