Auto start script #477
Unanswered
dshieldspgh
asked this question in
Q&A
Replies: 2 comments 3 replies
-
You're missing g the start of the command line , sudo python3 main.py.......... |
Beta Was this translation helpful? Give feedback.
2 replies
-
I'm using Supervisor to start and stop the program and this is how my command looks:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone. Apologies, noob here and having issues with the auto start script. When I start the scoreboard and check the status, I get a status=200/CHDIR "Failed CHDIR spawning /usr/bin/python3: No such file of directory."
I am running on the 32-bit OS Lite (Debian Bullseye w/ no desktop) and my script is as follows:
[Unit]
Description=MLB LED Scoreboard
Wants=network-online.target
After=network.target network-online.target
[Service]
Environment="SCOREBOARD_ARGS=--led-rows=32 --led-cols=64 --led-brightness=60 --led-slowdown-gpio=4 --led-gpio-mapping=adafruit-hat-pwm"
WorkingDirectory=/home/pi/mlb-led-scoreboard
ExecStart=/usr/bin/python3 main.py $SCOREBOARD_ARGS
Restart=always
RestartSec=2
[Install]
WantedBy=multi-user.target
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions