Last active
March 12, 2021 01:25
-
-
Save j1cs/b93157f9684c1d263e8c27011a9041f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mkdir -p /var/log/runsvdir-glats | |
exec svlogd -tt /var/log/runsvdir-glats |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exec 2>&1 | |
for u in $(ls /home); do | |
groups="$(id -Gn "$u" | tr ' ' ':')" | |
svdir="/home/$u/.local/etc/runit/sv" | |
exec chpst -u "$u:$groups" runsvdir "$svdir" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment