Skip to content

Commit

Permalink
fixup! CA-387560 add support for more systemd execution types
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Lindig <[email protected]>
  • Loading branch information
Christian Lindig authored and lindig committed Jan 19, 2024
1 parent 8320d78 commit d057878
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ocaml/forkexecd/lib/fe_systemctl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand All @@ -37,6 +37,10 @@ module Type = struct
"oneshot"
| Forking ->
"forking"
| Notify ->
"notify"
| Idle ->
"idle"
end

let default_env = ["PATH=" ^ String.concat ":" Forkhelpers.default_path]
Expand Down
2 changes: 1 addition & 1 deletion ocaml/forkexecd/lib/fe_systemctl.mli
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d057878

Please sign in to comment.