Exec on MCode installation Guide
Guide
The shutdown example is available on the github page
In order to make it run as a service on rasbian:
- download the lastest version
wget [url to latest version]
- rename to be just execonmcode
mv [latest version] execonmcode
- make it executible
chmod +x execonmcode
- move to the system bin folder
mv execonmcode /usr/local/bin
- download the shutdown script from the github page
wget https://raw.githubusercontent.com/wilriker/execonmcode/ad42d63d7392fecd7a21a69921b1dc70293d44ac/shutdownsbc.service
- make it executable and set the permissions
chmod +x shutdownsbc.service
chmod 777 shutdownsbc.service
chown root:root shutdownsbc.service
- move to the system service folder
sudo mv shutdownsbc.service /etc/systemd/system
- make it start up with the OS
systemctl enable shutdownsbc.service
- you can check the status of the new shutdown service and start it up
systemctl status shutdownsbc.service
systemctl start shutdownsbc.service