Autostart Open Stage Control

What is the best way to create a autostart on the Raspberry Pi. Whe use the Node installation.

Im not a programmer so these is al new stuff for mij :slight_smile:

Well it might be worth asking this on a RPI forum I think :wink:

as o-s-c can run on a node mode (right ?) https://openstagecontrol.ammd.net/docs/getting-started/running-with-node/#running-with-node
maybe try this
https://dev.to/bogdaaamn/run-your-nodejs-application-on-a-headless-raspberry-pi-4jnn
and adapt it.
I don’t have tested it.

Oke Ive found the sollutions. For some reason rc.local give some issues.

Ive use now crontab as a autorstart application whit these command:
@reboot sudo node …/app [options]

Start crontab as a root sudo crontab -e otherwhise it while not start on a reboot.

Fore the beginners like me :slight_smile: More info about crontab you while found here

Dexter Industries

Tutorial - Auto Run Python programs on the Raspberry Pi

A step by step Tutorial for how to Auto Run Python programs on the Raspberry Pi.

These works fine.