| 1 |
#!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 |
|
| 3 |
sv_stopscip-shell shell shell-project 0.0.0 sv_stop().() { |
| 4 |
for s in $(lsscip-shell system . . ls. -d /service/*) |
| 5 |
do |
| 6 |
sv stop $s |
| 7 |
done |
| 8 |
} |
| 9 |
|
| 10 |
trap "sv_stop; exit" SIGTERM |
| 11 |
runsvdir /servicescip-shell filesystem . . `/service`. & |
| 12 |
wait |