#!/bin/bash

trap "HUP;  exit 1" 1
trap "INT;  exit 1" 2
trap "QUIT; exit 1" 3
trap "TERM; exit 1" 15

function HUP {
  echo "function HUP"
}

function INT {
  echo "function INT"
}

function QUIT {
  echo "function QUIT"
}

function TERM {
  echo "function TERM"
}

while :
do
  sleep 1
done
