module Service_command: Service_commandtype slot = {
|
lock_file : |
|
name : |
|
redirect_stdout : |
|
redirect_stderr : |
module type T =sig..end
typet =(module Service_command.T)
val start : t -> Core.Std.Command.tval stop : t -> Core.Std.Command.tval status : t -> Core.Std.Command.tval restart : t -> Core.Std.Command.tval group : t -> summary:string -> Core.Std.Command.tval acquire_lock_exn : slot -> boolacquire_lock_exn slot locks slot. This can be used from within another program to
ensure that no server is running while, e.g., an offline backup is run.
Due to the semantics of the underlying Lock_file.create call, this lock is only
released when the process exits. To release earlier, delete the lock file manually.
*