Systemd integration library for Erlang - version 0.5.0 released

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Source: 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@xxxxxxxxxx
--

Łukasz Niemier
lukasz@xxxxxxxxxx

_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux