Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[enhance] daemon: option not available on MacOS

  • Loading branch information...
commit c8454e4dd71280d4c0455d0547b64d249a97acdf 1 parent 1fc07ad
Hugo Venturini authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 database/database_server.ml
View
5 database/database_server.ml
@@ -44,11 +44,14 @@ let options =
{o with bind = addr; port = Option.default o.port portopt}),
"<addr>[:<port>]", Printf.sprintf "Bind the server to the given local address")
::
+ (if Config.os = Config.Mac then []
+ else [
(["--daemon";"-d"],
ServerArg.func (ServerArg.option ServerArg.string)
(fun o pidfile -> {o with daemonize = true; pidfile}),
"[pidfile]", Printf.sprintf "Run in the background ** NOT MacOSX COMPATIBLE ** ")
- ::
+ ])
+ @
List.map
(fun (arg,parse,params,help) -> arg, wrap_parser parse, params, help)
Badop_meta.options_parser
Please sign in to comment.
Something went wrong with that request. Please try again.