Lacca.start_link
start_link
, go back to Lacca module for more information.
Specs
start_link(String.t(), [String.t()]) :: GenServer.on_start()
Starts a Lacca client process which will run the executable located at
exec_path
with the specified command line arguments. The returned handle,
of the form {:ok, pid}
.
The pid
represents the lacca
client, which communicates w/ a resin
daemon via an external Port
. The program at exec_path
is supervised
by this resin
daemon, and is referred to as the inferior
process.
Note that stdout
and stderr
from the process are captured inside
StringIO
buffers internally. This data will remain in-memory until
this server is either stopped, or the buffers are flushed using the
respective API functions: read_stdout/1
and read_stderr/1
.
Errors
This method will raise ArgumentError
if the resin
daemon cannot be
found on your system's executable PATH
. The configuration key located
at :resin, :daemon_path
can be used to force this process to run the
daemon from a non-standard location.