Node-Flower-Bridge -- Auto Start/Survive Reboot

Hi,
I have the bridge up and running and it works great. Thank you Bruno Sautron for all the work!!

What method are people using to get the Node-Flower-Bridge to survive a reboot.
I know most of you probably know this offhand but I am not a programmer.
But i am pretty good at following instructions.

Google shows all kinds of ways to start programs on the Pi. but i don’t have the basic understanding to know which to use.

I can’t set a root password with Jessie so i SSH in as pi and use sudo su
so my directory and run command are:
root@raspberrypi:/home/pi/node-flower-bridge# ./bridge display

Thanks

Hi @tinke3433

You can add a cron job to start the bridge like:
$> crontab -e
and add:
*/1 * * * * /home/pi/node-flower-bridge/bridge background

This job try to start the program every minute. ./bridge background commande start the program only if the bridge is not on.
So every minute it will check if the program is alive. If is not, it start the program.

The crontab is permanent also a reboot of the raspberry.

Bruno

Hi
I edited the file as specified
after a reboot crontab -l now lists:

root@raspberrypi:/home/pi/node-flower-bridge# crontab -l
# Edit this file to introduce tasks to be run by cron.
#
snip
#
# m h dom mon dow command
*/1 * * * * /home/pi/node-flower-bridge/bridge background
#

but it still isn’t working after a reboot:
root@raspberrypi:/home/pi/node-flower-bridge# ./bridge status
No program is running

the directory contains:
root@raspberrypi:/home/pi/node-flower-bridge# ls
bridge database lib node_modules start.js
credentials.json index.js LICENSE package.json updatedb
crontab install.sh nm README.md

Do i need to change permissions on files or anything? Or run the chrontab -e from a different directory?

Thanks,
Jeff