From d0578783f1fe4dcab458d2d6c69ba301fed91ccf Mon Sep 17 00:00:00 2001 From: Christian Lindig Date: Thu, 18 Jan 2024 15:51:15 +0000 Subject: [PATCH] fixup! CA-387560 add support for more systemd execution types Signed-off-by: Christian Lindig --- ocaml/forkexecd/lib/fe_systemctl.ml | 6 +++++- ocaml/forkexecd/lib/fe_systemctl.mli | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ocaml/forkexecd/lib/fe_systemctl.ml b/ocaml/forkexecd/lib/fe_systemctl.ml index 4dea6378eac..cd76bede41a 100644 --- a/ocaml/forkexecd/lib/fe_systemctl.ml +++ b/ocaml/forkexecd/lib/fe_systemctl.ml @@ -28,7 +28,7 @@ let action ~service action = (** Systemd execution type *) module Type = struct - type t = Simple | OneShot | Forking + type t = Simple | OneShot | Forking | Notify | Idle let to_string = function | Simple -> @@ -37,6 +37,10 @@ module Type = struct "oneshot" | Forking -> "forking" + | Notify -> + "notify" + | Idle -> + "idle" end let default_env = ["PATH=" ^ String.concat ":" Forkhelpers.default_path] diff --git a/ocaml/forkexecd/lib/fe_systemctl.mli b/ocaml/forkexecd/lib/fe_systemctl.mli index e31665443e4..5ba44c4e290 100644 --- a/ocaml/forkexecd/lib/fe_systemctl.mli +++ b/ocaml/forkexecd/lib/fe_systemctl.mli @@ -19,7 +19,7 @@ type status = { } module Type : sig - type t = Simple | OneShot | Forking + type t = Simple | OneShot | Forking | Notify | Idle val to_string : t -> string end