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.

RASPBERRY PI 3 - Model B. 1GB RAM

New Raspberry Pi 3

Raspberry Pi 512MB Model B +

Raspberry Pi Model B+, ARM1176JZF-S Running at 700MHz, 512MB RAM.

Raspberry Pi 3 Ultimate Starter Kit - Wifi, HDMI, Breadboard, SD Card

Everything you need to build basic EasyIoT server on Raspberry Pi platform.

MICRO SD 64GB 32GB 16GB MEMORY CARD

USB STICK SIM Modem 7.2MBPS 3G Wireless USB Dongle

To control EasyIoT server by SMS message.

Acrylic Case Clear Transparent Shell Enclosure Computer Box Kit For Raspberry Pi

Acrylic Case Shell Enclosure for Raspberry Pi B+

Raspberry Pi to NRF24l01+ Shield EasyIoT server compatibile

Raspberry Pi to NRF24l01+ Shield EasyIoT server compatibile, Raspberry Pi, Raspberry PI B, Raspberry Pi 2

Prototyping Shield Module For Raspberry Pi

To build custom sensors and NRF24L01 transmitter/receiver on Raspberry Pi.

NRF24L01+PA+LNA SMA Antenna Wireless Transceiver communication module 2.4G

5V 2A Charger Micro USB

For Raspberry Pi or sensor modules, cheap and easy power solution.

USB Wifi Dongle Adapter 802.11n for for Raspberry Pi Model B+ B

No need for network cables on EasyIoT server. Use WiFI USB dongle.

 


Comments   

+1 #22 virgus1970 2015-07-13 19:35
I have a problem with starting IOT-server as a demon, but I solved it & now everything is OK. Now it started after booting before login of any user.
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"
+1 #21 Allan Madsen 2015-06-22 13:42
In /etc/rc.local

(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
:-)
#20 Super User 2015-06-18 09:14
Quoting Allan Madsen:
You need to edit this, it dosent work at all :-(


If you have trouble setting this manually use image file where everything is configured.
#19 Allan Madsen 2015-06-17 23:04
You need to edit this, it dosent work at all :-(
#18 iMat2.9 2015-03-21 03:49
I think you really need to check your install instructions. In the first installation tutorial you tell people to install it to "/home/easyiot/" here you're telling people to change permissions in "/home/pi/easyiot/"

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.
#17 Vasilij 2015-03-06 08:00
Quoting Vasilij:
pi@raspberrypi ~ $ sudo chmod +x startup.sh
chmod: cannot access `startup.sh': No such file or directory

How to solve ?

Solved
#16 Vasilij 2015-03-05 19:16
pi@raspberrypi ~ $ sudo chmod +x startup.sh
chmod: cannot access `startup.sh': No such file or directory

How to solve ?
#15 DarioCdj 2015-01-27 08:17
Hi, when i start as service everything goes fine after changing port to 1301. But it gives me a certificate error (invalid certificate?) and then when i continue open program. But veeeeery slow to open.
Then it works perfect. I've used normal server installation and this tutorial.
Thanks
Dario
#14 juanstiller 2015-01-19 05:47
Quoting Super User:
I've updated tutorial. I think the problem was that when you copied raw file some characters are corrupted. Please try new setup procedure.

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
#13 Super User 2015-01-18 23:44
Quoting juanstiller:
Quoting Super User:
Did you check file permissions? You must have execute permission on startup.sh


But if i don't have to download easyiot script do i have to copy startup.sh into init.d? although i can execute startup script when i point the browser to raspberry ip address nothing happens. But if i use mono easyiot.exe the server starts ok and i can browse to easyiot fine and do whatever i want. I don't know what is wrong.


I've updated tutorial. I think the problem was that when you copied raw file some characters are corrupted. Please try new setup procedure.

You have no rights to post comments