17 lines
673 B
Plaintext
17 lines
673 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
for i in $(ls /etc/sv/); do
|
||
|
mkdir -p /etc/dinit.d/runitb.d/"$i"
|
||
|
cp -r /etc/sv/"$i"/* /etc/dinit.d/runitb.d/"$i"/
|
||
|
rm -rf /etc/dinit.d/runitb.d/"$i"/supervise
|
||
|
if [[ -x /etc/dinit.d/runitb.d/"$i"/log ]]; then
|
||
|
rm -rf /etc/dinit.d/runitb.d/"$i"/log/supervise
|
||
|
printf "type = process \nworking-dir = /etc/dinit.d/runitb.d/"$i"/log/ \ncommand = /etc/dinit.d/runitb.d/"$i"/log/run" > /etc/dinit.d/"$i"-log
|
||
|
fi
|
||
|
printf "type = process \nworking-dir = /etc/dinit.d/runitb.d/"$i"/ \ncommand = /etc/dinit.d/runitb.d/"$i"/run" > /etc/dinit.d/"$i"
|
||
|
done
|
||
|
|
||
|
for i in $(ls /etc/runit/runsvdir/default/); do
|
||
|
ln -sf /etc/dinit.d/"$i" /etc/dinit.d/boot.d/
|
||
|
done
|