command ~lock_file ~name maincreates a command group for starting, stopping, restarting, and checking the status of a daemon (the code for which lives in the argument
main). This family of commands uses a
lock_fileto ensure that two instances of the daemon don't run concurrently on the same machine. The
nameparameter is used to name the daemon in the command help and various error messages.
lock_file should be on the local file system (for example in /var/tmp)
since file locking doesn't work over NFS.
val command :
lock_file:string -> name:string -> (unit -> unit) -> Deprecated_command.t