summaryrefslogtreecommitdiffstats
path: root/hosts/jenkins/etc/rc.local
blob: 34587a9a200db1a1d3f4fc2d7e7fba83bce0f69f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#

MESSAGE="$(hostname -f) rebooted"
echo "$(date -u) - system was rebooted" | mail -s "$MESSAGE" root
for channel in debian-qa debian-reproducible ; do
	kgb-client --conf /srv/jenkins/kgb/$channel.conf --relay-msg "$MESSAGE"
done
exit 0