How to fix long server shutdown times in Linux

Your Linux system takes too long to shut down? Here are the steps you can take to figure out what's causing the delayed shutdown and fix the problem. I hope you are a little familiar with the concept of sigterm and sigkill.