[Ubuntu] Enable systemd lingering (#5812)

This commit is contained in:
Mikhail Koliada
2022-06-27 10:05:28 +02:00
committed by GitHub
parent 1ede920d60
commit e40657de17

View File

@@ -0,0 +1,5 @@
#!/bin/bash
# Enable user session on boot, not on login
UserId=$(cut -d: -f3 /etc/passwd | tail -1)
loginctl enable-linger $UserId