mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Ubuntu] Enable systemd lingering (#5812)
This commit is contained in:
5
images/linux/post-generation/systemd-linger.sh
Normal file
5
images/linux/post-generation/systemd-linger.sh
Normal 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
|
||||
Reference in New Issue
Block a user