#!/bin/bash

trap "echo got sigusr1" USR1
trap "echo got sigusr2" USR2
trap "echo got sighup" HUP

while true; do
    echo "running $1 process"
    sleep 1
done

