Sha256: 207dd12209965800d90ddfcbeb415abda5c22deded890c2b23b3f5deef3d4767

Contents?: true

Size: 438 Bytes

Versions: 10

Compression:

Stored size: 438 Bytes

Contents

#!/bin/bash
set -e
KillJobs() {
    for job in $(jobs -p); do
        kill -s SIGTERM $job > /dev/null 2>&1 || (sleep 10 && kill -9 $job > /dev/null 2>&1 &)
    done
}

# Whatever you need to clean here
trap KillJobs SIGINT SIGTERM EXIT

/usr/bin/socat TCP-LISTEN:80,reuseaddr,fork TCP:0.0.0.0:<%= http_port %>&
pid1=$!
/usr/bin/socat TCP-LISTEN:443,reuseaddr,fork TCP:0.0.0.0:<%= https_port %>&
pid2=$!
wait $pid1 $pid2
wait $pid1 $pid2

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
itrg-invoker-1.6.1 lib/invoker/power/setup/files/invoker_forwarder.sh.erb
itrg-invoker-1.6.0 lib/invoker/power/setup/files/invoker_forwarder.sh.erb
invoker-1.5.8 lib/invoker/power/setup/files/invoker_forwarder.sh.erb
invoker-1.5.7 lib/invoker/power/setup/files/invoker_forwarder.sh.erb
invoker-1.5.6 lib/invoker/power/setup/files/invoker_forwarder.sh.erb
invoker-1.5.5 lib/invoker/power/setup/files/invoker_forwarder.sh.erb
invoker-1.5.4 lib/invoker/power/setup/files/invoker_forwarder.sh.erb
invoker-1.5.3 lib/invoker/power/setup/files/invoker_forwarder.sh.erb
meepo-1.5.2 lib/invoker/power/setup/files/invoker_forwarder.sh.erb
invoker-1.5.1 lib/invoker/power/setup/files/invoker_forwarder.sh.erb