particle-os-modules/modules/systemd
fiftydinar 28ed8ed259
feat(systemd): Add support for including systemd units (#144)
* feat(systemd): Add support for including systemd units

This also gets rid of `files` module dependency & exposes this function better to the users.

Related issue:
https://github.com/ublue-os/bling/issues/143

* fix(systemd): Make included systemd unit check better

It doesn't fail now if there is systemd folder present without any files.

* chore(systemd): Code spacing fixes

* chore(systemd): Disable dotglob, as it's not needed for systemd units

* docs(systemd): Remove inclusion term
2024-02-26 16:55:06 +00:00
..
module.yml chore: replace URLs with ublue-os/bling 2024-02-21 16:39:34 +02:00
README.md feat(systemd): Add support for including systemd units (#144) 2024-02-26 16:55:06 +00:00
systemd.sh feat(systemd): Add support for including systemd units (#144) 2024-02-26 16:55:06 +00:00

systemd

The systemd module streamlines the management of systemd units during image building. Units are divided into system and user categories, with system units managed directly using systemctl and user units using systemctl --global. You can specify which units to enable/disable or unmask/mask under each category.

You can also include your systemd units to be copied into system directories into these locations,
depending if your unit is system or user based:
config/systemd/system
config/systemd/user

Those units are then copied into these folders (depending on unit base):
/usr/lib/systemd/system
/usr/lib/systemd/user

Supported management operations are enabling, disabling, masking and unmasking.