linux:debian:linger
Differences
This shows you the differences between two versions of the page.
| linux:debian:linger [2022/02/12 07:54] – created oscar | linux:debian:linger [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Linger ====== | ||
| - | By default, users cannot set user services to run at boot time. The admin must enable this on an individual basis for each user. If lingering is enabled for a specific user, a user manager is spawned for the user at boot and kept around after logouts. This allows users who are not logged in to run long-running services. Takes one or more user names or numeric UIDs as argument. If no argument is specified, enables/ | ||
| - | ===== Enable Lingering for user ===== | ||
| - | loginctl enable-linger $USER | ||
| - | loginctl disable-linger $USER | ||
| - | Or alternatively: | ||
| - | touch / | ||
| - | rm / | ||
| - | |||
| - | ===== Show status for user ===== | ||
| - | You can show a list of lingering users with: | ||
| - | ls / | ||
| - | Or alternatively: | ||
| - | | ||
| - | |||
| - | ===== Check status in scripts ===== | ||
| - | To check user lingering status in scripts (programmatically): | ||
| - | loginctl show-user " | ||
| - | |||
| - | |||
| - | |||
linux/debian/linger.1644652498.txt.gz · Last modified: by oscar
