🗃️ Committing everything that changed 🗃️

rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh
This commit is contained in:
casjay 2024-08-12 18:29:01 -04:00
parent 6180d2af18
commit 7d896d5e3e
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -379,12 +379,12 @@ __post_execute() {
__banner "$postMessageST" __banner "$postMessageST"
# commands to execute # commands to execute
if [ -d "$CONF_DIR/multi" ]; then if [ -d "$CONF_DIR/multi" ]; then
for multi in "$CONF_DIR/multi"/*; do for multi_dir in "$CONF_DIR/multi"/*; do
if [ -n "$multi" ] && [ -d "$multi" ]; then if [ -n "$multi_dir" ] && [ -d "$multi_dir" ]; then
unset pid is_running name unset pid is_running name
name="$(basename "$multi")" name="$(basename "$multi_dir")"
if [ -f "$multi/daemon.yaml" ] && [ -f "$multi/runners" ]; then if [ -f "$multi_dir/daemon.yaml" ] && [ -f "$multi_dir/runners" ]; then
act_runner daemon --config $multi/daemon.yaml & act_runner daemon --config $multi_dir/daemon.yaml &
pid=$! pid=$!
sleep 5 && ps ax | awk '{print $1}' | grep -v grep | grep -q "$pid$" && is_running="yes" sleep 5 && ps ax | awk '{print $1}' | grep -v grep | grep -q "$pid$" && is_running="yes"
if [ "$is_running" = "yes" ]; then if [ "$is_running" = "yes" ]; then