Start new queues on SIGHUP
Use a single case block instead of repeated ifs for command parsing