Releases: leafo/lapis-systemd
v2.1.0
https://luarocks.org/modules/leafo/lapis-systemd
Changes
-
Added
--printoption tolapis systemd servicecommand to print service file to stdout -
Added more detailed documentation for configuring service files, including
user,env,name,dir, andlapis_binoptions -
Enhance the
envconfiguration option to allow specifying environment variables directly. It defaults to copying thePATH,LUA_PATH, andLUA_CPATHenvironment variables if not set. -
The
envoption can take a few different types of values:- If set to
false, no environment variables will be set in the service - If a string, it's treated as a single environment variable name to copy
- If a table, it can contain a mix of:
- Array elements: Names of environment variables to copy from the current shell environment
- Key-value pairs: Environment variables to set directly in the service
- If set to
-
Previously, by default
LUA_PATHandLUA_CPATHwere always copied. NowPATHis copied by default as well. -
Fixed journal logging to respect
filter_unitconfig option -
Added tests for rendering service files with custom environment variables
Full Changelog: v2.0.0...v2.1.0