OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-learn / version-one / attic / run-poc / misc / system_scripts / rc.local.shutdown

15 lines · shutdown ref:
#!/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