#!/bin/sh -e
#
# /etc/rc.local.shutdown
#
# This script is executed during system shutdown.
#
# Be sure to run `sudo install rc.local.shutdown /etc`
#
echo "Shut down the opencog system" > /root/opencog-shutdown.log
date >> /root/opencog-shutdown.log
sudo -u ubuntu /home/ubuntu/run/halt.sh >> /root/opencog-shutdown.log
exit 0