commit 6212692
hovercats
·
2025-01-05 11:56:05 +0000 UTC
parent cafdc29
support activating multiple services simultaneously
1 files changed,
+6,
-2
M
rcsm
M
rcsm
+6,
-2
1@@ -28,8 +28,12 @@ case -a
2 switch($#*) {
3 case 1
4 find $basedir/run -type l
5- case 2
6- ln -sf $basedir/avail/$2 $basedir/run/
7+ case *
8+ cmd=$1
9+ shift 1
10+ for (serv in $basedir/avail/$*) {
11+ ln -sf $serv $basedir/run/
12+ }
13 }
14 case -c
15 test -d $basedir/run || mkdir -p $basedir/run