rename to systemd-ml
This commit is contained in:
parent
9d78856d2d
commit
8c3b24ea44
4
bin/dune
4
bin/dune
|
@ -1,5 +1,5 @@
|
|||
(executable
|
||||
(public_name ocaml-systemd)
|
||||
(public_name systemd-ml-test)
|
||||
(name main)
|
||||
(modes byte exe)
|
||||
(libraries systemd systemd.xlog systemd.main eio_main fmt xlog))
|
||||
(libraries systemd-ml systemd-ml.xlog systemd-ml.main eio_main fmt xlog))
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
(lang dune 3.15)
|
||||
|
||||
(name systemd)
|
||||
(name systemd-ml)
|
||||
(version 0.0.1)
|
||||
|
||||
(generate_opam_files true)
|
||||
|
||||
(package
|
||||
(name systemd)
|
||||
(name systemd-ml)
|
||||
(synopsis "libsystemd-like functionality for native ocaml")
|
||||
(description "utilities for interacting with systemd when running as a service")
|
||||
(license "unfree")
|
||||
(homepage "https://git.lain.faith/haskal/ocaml-systemd")
|
||||
(homepage "https://git.lain.faith/haskal/systemd-ml")
|
||||
(authors "xenia <xenia@awoo.systems>")
|
||||
(source (uri "https://git.lain.faith/haskal/ocaml-systemd.git"))
|
||||
(source (uri "https://git.lain.faith/haskal/systemd-ml.git"))
|
||||
(tags
|
||||
(meow))
|
||||
|
||||
|
|
2
lib/dune
2
lib/dune
|
@ -1,6 +1,6 @@
|
|||
(library
|
||||
(name systemd)
|
||||
(public_name systemd)
|
||||
(public_name systemd-ml)
|
||||
(preprocess (pps ppx_unicode))
|
||||
(libraries cstruct eio eio_linux unix)
|
||||
(foreign_stubs
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
(library
|
||||
(name systemd_main)
|
||||
(public_name systemd.main)
|
||||
(public_name systemd-ml.main)
|
||||
(preprocess (pps ppx_unicode))
|
||||
(libraries eio eio_linux systemd systemd.xlog xlog))
|
||||
(libraries eio eio_linux systemd-ml systemd-ml.xlog xlog))
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
let noop _env _ctx = ()
|
||||
|
||||
let run ?(min_level=Xlog.WARN) ?(init=noop) ?(ready_status=None) ?(reload=noop) ?(shutdown=noop) func =
|
||||
if not (Systemd.is_in_systemd ()) then failwith "Not executing in systemd!";
|
||||
Eio_linux.run @@ fun env ->
|
||||
Eio.Switch.run ~name:"main" @@ fun sw ->
|
||||
if Systemd.is_journald_attached () then
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
(library
|
||||
(name systemd_xlog)
|
||||
(public_name systemd.xlog)
|
||||
(public_name systemd-ml.xlog)
|
||||
(preprocess (pps ppx_unicode))
|
||||
(libraries cstruct eio eio_linux unix xlog ptime))
|
||||
|
|
|
@ -7,7 +7,7 @@ description:
|
|||
authors: ["xenia <xenia@awoo.systems>"]
|
||||
license: "unfree"
|
||||
tags: ["meow"]
|
||||
homepage: "https://git.lain.faith/haskal/ocaml-systemd"
|
||||
homepage: "https://git.lain.faith/haskal/systemd-ml"
|
||||
depends: [
|
||||
"ocaml"
|
||||
"dune" {>= "3.15"}
|
||||
|
@ -35,4 +35,4 @@ build: [
|
|||
"@doc" {with-doc}
|
||||
]
|
||||
]
|
||||
dev-repo: "https://git.lain.faith/haskal/ocaml-systemd.git"
|
||||
dev-repo: "https://git.lain.faith/haskal/systemd-ml.git"
|
Loading…
Reference in New Issue