If the port cannot be bound, the program should fail
Baughn opened this issue · comments
At the moment, if discord-alertmanager is asked to listen on a port that is already in use, it will exit with status code 0. This means it will not be marked as 'failed' by systemd.
Since it's never meant to exit, you should simply add os.Exit(1)
to the end of main.
Cheers, good spot