[systemd-devel] Systemd integration library for Erlang - version 0.5.0 released

Łukasz Niemier lukasz at niemier.pl
Tue Mar 10 10:14:45 UTC 2020


systemd is library for integrating Erlang applications with systemd. Currently supported features are:

- notification socket
- watchdog process
- journal integration (via kmsg-like messages on stdout/stderr or via direct journal socket connection)
- limited support for socket activation

Hex: https://hex.pm/packages/systemd <https://hex.pm/packages/systemd>
Source: https://github.com/hauleth/erlang-systemd <https://github.com/hauleth/erlang-systemd>

This introduced few breaking changes:

	• Removal of systemd_journal_formatter - now everything happenes in the systemd_journal_h and do not require user to remember to use one particular formatter
	• systemd_stderr_formatter was renamed to systemd_kmsg_formatter as it can be used with other output streams, not only standard_error, new name is derivation of format that the journal uses which is based on Linux kernel messages known as kmsg
Other notable changes:

	• systemd:notify/2 was removed
	• systemd:notify/1 can now take list of messages to be sent at once
	• systemd_kmsg_formatter will be used automatically for all handlers that use logger_std_hwith type standard_io or standard_error if these are attached to the journal stream (wich is checked via JOURNAL_STREAM env variable set automatically by systemd)
	• systemd:ready/0 helper function that returns child spec for temporary child that will send ready notification, useful for adding it in the supervisor children list
	• Watchdog can now be manually forced to run, even if the PID mismatch

--

Łukasz Niemier
lukasz at niemier.pl <mailto:lukasz at niemier.pl>
--

Łukasz Niemier
lukasz at niemier.pl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20200310/612e37d8/attachment.htm>


More information about the systemd-devel mailing list