Edison

root@edison:~# cd /home/root/

root@edison:~# nano nodeexec.sh
node /root/Amikoo/Edision/Node/amikoo.edison
root@edison:~# chmod +x nodeexec.sh

root@edison:~# cd /lib/systemd/system

root@edison:~# nano nodeexec.service
[Unit]
Description=NodeExec
After=sys-subsystem-net-devices-%i.device

[Service]
ExecStart=/bin/bash /home/root/nodeexec.sh
Restart=always
RestartSec=10 

[Install]
Alias=NodeExec
WantedBy=multi-user.target
root@edison:~# systemctl daemon-reload

root@edison:~# systemctl --system enable nodeexec

root@edison:~# systemctl start nodeexec

root@edison:~# systemctl status nodeexec.service -l

root@edison:~# systemctl status nodeexec

Reboot your Intel Edison

root@edison:~# reboot

Once booted, verify again hello-world service status

root@edison:~# systemctl status nodeexec

Last updated