Skip to content

Releases: leafo/lapis-systemd

v2.1.0

11 Apr 20:35

Choose a tag to compare

https://luarocks.org/modules/leafo/lapis-systemd

Changes

  • Added --print option to lapis systemd service command to print service file to stdout

  • Added more detailed documentation for configuring service files, including user, env, name, dir, and lapis_bin options

  • Enhance the env configuration option to allow specifying environment variables directly. It defaults to copying the PATH, LUA_PATH, and LUA_CPATH environment variables if not set.

  • The env option 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
  • Previously, by default LUA_PATH and LUA_CPATH were always copied. Now PATH is copied by default as well.

  • Fixed journal logging to respect filter_unit config option

  • Added tests for rendering service files with custom environment variables

Full Changelog: v2.0.0...v2.1.0

v1.0.0

24 Feb 19:39

Choose a tag to compare

Initial release