Creating a User-Based systemd Service
In addition to the system-wide systemd files, systemd enables you to create user-based services that you can run from a user level without requiring root access and privileges. These user-based services are under user control and are configurable independent of system services.
The following are some distinguishing features of user-based systemd services:
- User-based
systemdservices are linked with a specific user account. - They're created under the associated user’s home directory in
$HOME/.config/systemd/user/. - After these services are enabled, they start when the associated user logs in. This behavior differs from that of enabled
systemdservices which start when the system boots.
This feature is useful when creating podman container services. For more information about podman, see Oracle Linux: Podman User's Guide.
To create a user based service: