Which is the best way to run a script upon server restart and when server is up again?
e.g. When services will be unavailable:
irc_notify "Server is going down"
when all services are available:
irc_notify "Server is up again"
Server shutdown may be triggered by various scripts, so I don't want to use shutdown command with parameters.