This module starts a server written in Erlang (and later referenced only as server), which receives messages from the Solaris operating system. The messages are tagged with an atom and subsequently forwarded to the error_logger in the Erlang runtime system. If the atom is std_error
, the messages are handled the same way as the bulk of internal error messages in the Erlang runtime system.
This module, together with the dedicated UNIX-processes, makes a number of reconfigurations to the Solaris operating system when the service is enabled. These configurations include:
syslogd
As a consequence of these modifications:
syslogd
writes messages of interest to the named pipe
When the service is disabled, the original configuration is restored.
Types:
Result = {ok, Pid} | {error, {already_started, Pid}}
Pid = pid()
This function starts the server together with its dedicated UNIX processes. It returns {ok, Pid}
if the start was successful, otherwise {error, already_started}
.
Types:
Result = {ok, Pid} | {error, {already_started, Pid}}
Pid = pid()
This function starts the server together with its dedicated UNIX processes. The caller is also linked to the server. It returns {ok, Pid}
if the start was successful, otherwise {error, already_started}
.
Types:
Result = ok | not_started
This function stops the server and restores the original configuration of the operating system. It returns ok
if successful, otherwise not_started
.