summaryrefslogtreecommitdiff
path: root/allstar/allstar-brb
blob: 294e73c66334270c0858adc1384b50be5e76ed2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

if [ -f /var/lib/asterisk/brb/pressed ]; then
	/usr/local/bin/allstar-restart

	/usr/bin/ssmtp -t <<EOM
From: Asterisk <root@megalink.network>
To: zabbix@megalink.network
Subject: Big Red Button Pushed - $(hostname)

This is the allstar-brb program on $(hostname)

Asterisk was cycled at:

$(date)

due to someone pushing the big red button!

Be will, John Spartan
EOM

fi