I am having trouble trying to get a Python script to execute at start up. Currently all the script does is opens a file and writes to it.
I have tried using Startup Applications and cron with no luck.
I have also tried the advice in this thread: Jetson nano auto run python code when power up - #3 by xuanthinh010110
autorun-tester.sh
#!/bin/sh
python autorun-tester.py
autorun-tester.service
[Unit]
Description=Autorun-test
After=graphical.target
[Service]
ExecStart=/usr/local/bin/autorun-tester.sh
Restart=always
StartLimitInterval=10
RestartSec=10
[Install]
WantedBy=graphical.target
None of these methods have worked and I am at a lost as to why. I have confirmed that the python script works when run using python. I have also confirmed that the bash script works when running it independently. However, the script isn’t executed at reboot.
When I run:
systemctl list-units --type=service
I can see the service there, but it is in “activating” status.
Has anyone been able to autorun a script on boot on the Jetson Nano?