Keep user services running without an active login session.

Section: User Units and Transient Units

Enable linger for user

bash
bash
sudo loginctl enable-linger jon
Explanation

Important for persistent user services on servers.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing User Units and Transient Units
List user units
Show units under the user service manager.
OpenIn sheetbashsame section
Enable user service
Enable and start a per-user service.
OpenIn sheetbashsame section
Run a transient service
Create and run a one-off transient unit.
OpenIn sheetbashsame section
Run command in transient scope
Place an existing process subtree under a systemd scope.
OpenIn sheetbashsame section
List timers
Show active timers and next run times.
List socket units
Show socket-activated units.