I have a database table called servers, which has all our servers with serverid/ip/port in it.
I've adjusted your version to add a entry in a table and then match it to my serverid. This way i know which server was restarted instead of a single server. Included the source.