Edison
root@edison:~# cd /home/root/
root@edison:~# nano nodeexec.shnode /root/Amikoo/Edision/Node/amikoo.edisonroot@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.targetroot@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 nodeexecReboot your Intel Edison
root@edison:~# rebootOnce booted, verify again hello-world service status
root@edison:~# systemctl status nodeexecLast updated
Was this helpful?