commit 91c1e55b7cdf32372d86982b875a28340d502400 parent d8992029558de4231374cd6324970a786f23e1d2 Author: mrgrouse <bdmfegys@duck.com> Date: Sun, 27 Jul 2025 18:55:50 -0400 create svc.runservice to imitate bash function Diffstat:
| A | svc/svc.runservice | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/svc/svc.runservice b/svc/svc.runservice @@ -0,0 +1,11 @@ +#!/bin/execlineb -S3 +# service - $1 +# dir - $2 +# cmd - $3 +backtick funnyvaridontknownameof { pipeline { stat -L -t "${2}/${1}" } cut -d' ' -f 2 } +ifte { eltest $funnvaridontknownameof -eq 0 } + # then + { background { ./bare.sh ${1} ${3} } } + # else + { background { "${2}/${1}" "${3}" } } +# fi