Ajout : mini-scripts pour complémenter runit

This commit is contained in:
Ahurac 2024-03-29 11:33:25 +01:00
parent 9eb255f504
commit be7e6657d1
3 changed files with 11 additions and 0 deletions

3
bin/svadd Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env sh
cd /run/runit/service || exit
exec ln -s /etc/runit/sv/"$1" .

3
bin/svdel Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env sh
cd /run/runit/service || exit
exec unlink "$1"

5
bin/svls Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env sh
cd /run/runit/service || exit
for service in *; do
sv status "$service"
done