how bone101.js gets executed on boot

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
elliotlarson
 
Posts: 1
Joined: Tue Jul 20, 2010 2:51 pm

how bone101.js gets executed on boot

Post by elliotlarson »

When I start up my BB, I see "/usr/bin/node bone101.js" in the process list. I don't see anything in the init.d directory that kicked this off. Anyone know how this is setup to start on boot?

User avatar
greg1415
 
Posts: 2
Joined: Wed Jan 02, 2013 9:31 pm

Re: how bone101.js gets executed on boot

Post by greg1415 »

"/usr/bin/node bone101.js" is started by systemd via /lib/systemd/system/bone101.service

To have it start or not on boot use:
systemctl enable bone101.service
systemctl disable bone101.service

To check the current status:
systemctl status bone101.service

To manually stop and start the process:
systemctl stop bone101.service
systemctl start bone101.service

The html & javascript files served by node.js on port 80 are in /var/lib/cloud9/bone101

There is more info on the process itself at http://nodejs.org/ and https://c9.io/

Locked
Please be positive and constructive with your questions and comments.

Return to “Beagle Bone & Adafruit Beagle Bone products”