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