#!/usr/bin/sh
set -e

mkdir -p /run/runit/stage2/rc-local
ls -1 /etc/runit/rc-local/*.stop  |  while read script; do 
	bash -c $script && echo "@$(date '+%Y%m%d-%H%M%S'): $script: script has been executed">>/run/runit/stage2/rc-local/$(basename $script).log;  
done; 

