Trap SIGUSR1 so it doesn't terminate the service
Add command line parameter to enable debug logging