Add init.d script. Make some changes to signal handling.