haircut start script now uses new, more convenient API.
authorStanislaw Klekot <dozzie@jarowit.net>
Tue, 2 Sep 2014 16:30:09 +0000 (18:30 +0200)
committerStanislaw Klekot <dozzie@jarowit.net>
Tue, 2 Sep 2014 16:30:09 +0000 (18:30 +0200)
priv/haircut

index a2cbf83..3c59c61 100755 (executable)
@@ -76,10 +76,8 @@ start(Opts) ->
 
 setup_indira(Opts) ->
   % TODO: more control sockets?
-  indira:set_option(indira, listen, [
-    {indira_unix, Opts#opts.control_socket}
-  ]),
-  indira:set_option(indira, commander, haircut_commander),
+  indira:add_listener(indira_unix, Opts#opts.control_socket),
+  indira:set_commander(haircut_commander),
   indira:setup_logging(haircut, [{stdout, color}]),
   ok.