Please check if the path of the file and authority are correct, different Linux versions may have different path. In PowerMonitor.sh file, the script will copy SDAgent.sh file to /etc/rc.d/init.d/ , but in Ubuntu 14.10, there isn't a folder named /rc.d/ , so the path should changed to /etc/init.d/.
Below are the new commands for Ubuntu14.10: cd /home/test/Desktop/PowerMonitor //Because I download the software to desktop, I have to move to the folder at the desktop.
sudo cp SDAgent.sh /etc/init.d/ //copy the file to /etc/init.d/
sudo cp sdagent /usr/local/bin/ //copy the file to /usr/local/bin/
cd /usr/local/bin //go to path /usr/local/bin/
sudo chmod 777 sdagent //set the authority to the highest
cd /etc/init.d //go to path /etc/init.d
sudo chmod 777 SDAgent.sh //set the authority to the highest
sh SDAgent.sh start //start the service |