Permalink
Browse files

[enhance] daemon: option not available on MacOS

  • Loading branch information...
1 parent 1fc07ad commit c8454e4dd71280d4c0455d0547b64d249a97acdf Hugo Venturini committed Jun 27, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 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

0 comments on commit c8454e4

Please sign in to comment.