-if [[ $HOSTNAME != "$MAIL_HOST" ]]; then
- ksta=$(needrestart -b | sed -n 's/NEEDRESTART-KSTA: *//p');
- case $ksta in
- 1) : ;;
- [023]) myreboot ;;
- *) err error: unknown kernel status ;;
- esac
-fi
+case $HOSTNAME in
+ kd)
+ /a/bin/buildscripts/prometheus
+ ;;
+esac
+
+
+# TODO: executed from cron, this doesnt sent an email when we reboot,
+# because rebooting from the script stops the ability to send email.
+# We should figure some workaround.