Usually we run EasyIoT server as service in background.
First download and uncompress easyioy to /etc/init.d folder:
sudo cp easyiot /etc/init.d/
Then we execute to set execution rights:
sudo chmod +x /etc/init.d/easyiot
sudo chmod +x startup.sh
sudo update-rc.d easyiot defaults
After that will EasyIoT server automatically start at boot as service.
It is possibel to stop server service with:
sudo /etc/init.d/easyiot stop
But it is recommendet to stop it in user interface under Config->General settings->Shutdown server
Start server command
sudo /etc/init.d/easyiot start
See more tutorials at http://iot-playground.com/build
Buying guide
To support this site and EasyIoT framework development please buy in our store.
Comments
The problem was in one of lines of "easyiot" file. Exactly in this one (original file):
INSTALL_PATH="/home/pi/"
But IOT-server was installed at "/home/easyiot" directory.
Therefore I changed this line to:
INSTALL_PATH="/home"
(nano /etc/rc.local)
Just before the line exit 0
type
sudo mono /home/easyiot/EasyIoT.exe
Save the file
Now when you reboot it vil start up in the background
If you have trouble setting this manually use image file where everything is configured.
the code in your easyiot file in "/etc/init.d/" has an error which causes "unable to stat /home/pi//easyiot/startup.sh (No such file or directory)"
notice the double //?
I installed in /home/easyiot/ so I needed to edit the install path line to be
INSTALL_PATH="/home"
remove the /pi/ or if you have it installed in home/pi/ delete only the final / after pi
Doing this makes the startup script work as intended, no errors. service is running fine after reboot.
Solved
chmod: cannot access `startup.sh': No such file or directory
How to solve ?
Then it works perfect. I've used normal server installation and this tutorial.
Thanks
Dario
The problem was that there was no easyiot init.d version to use, now you have added and it works. But you should chech the run as service tutorial. Startup.sh it's not at ini.d dir, its on the install path. Thanks now its working, i am having problems to set ssl connection but i will let you know if i get stucked! Thanks
RSS feed for comments to this post