Systemd services

From postmarketOS

As we use the Alpine package repositories, many system services don't include systemd unit files. Rather than fork these packages into pmaports to rebuild them with systemd unit files, we just package the units files individually in the systemd-services package.

Note that if the package needs to link against systemd (e.g. to enable socket activation) then it should instead be forked from upstream and added to pmaports.

Forking an Alpine package

pmbootstrap aportgen --fork-alpine <package>

The package should then be moved from temp/<package> to extra-repos/systemd/

Adding a new service file

There is a 4-step guide in the systemd-services APKBUILD file, you can follow this to add any unit files or overrides you need.


For more info see Systemd