syslogize #1

Merged
fauno merged 5 commits from syslogize into antifascista 2022-06-05 23:14:50 +00:00
Showing only changes of commit af44e95be9 - Show all commits

View file

@ -17,4 +17,15 @@ if test $# -eq 0 ; then
exit 1 exit 1
fi fi
$@ 2>&1 | logger ${LOGGER} propagate_signal () {
logger ${LOGGER} "Received $1 signal"
jobs -p | xargs kill -$1
}
for signal in HUP INT QUIT USR1 USR2 TERM; do
trap "propagate_signal ${signal}" ${signal}
done
$@ 2>&1 | logger ${LOGGER} &
wait $!