#!/bin/sh # # This script performs default actions. It is invoked with CONFIG set # for the subhost. OVERLAYDIR="$(dirname $(realpath $0))" . $OVERLAYDIR/functions subhost_name "$CONFIG" subhost_config # Print the default init script cat <&2 set +x [ -p /run/dummy_service ] || mkfifo /run/dummy_service ( printf dummy_service > /proc/self/comm ; read X < /run/dummy_service ) & set -x } dummy_service /proc/*/comm exec /.reaper $NAME EOF