Page MenuHomePhorge

Systemd
Updated 1,104 Days AgoPublic

User systemd units

You can define services or other systemd units (ex. a .path unit to look at a folder and run an action when there's modifications) at a user level, with only user permissions, by putting systemd unit files in ~/.config/systemd/user, and control them by using the --user flag for the systemctl command, ex. systemctl --user status my-rad-thing.service.

On Ubuntu at least, if you want these services to run like system services you'll probably need to manually enable "lingering" (ex. sudo loginctl enable-linger keithzg). Except that still doesn't work :*(

Last Author
keithzg
Last Edited
Dec 13 2021, 5:40 PM