You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I trying to get work pyhton script.
There is file startup.py, is it correct to put there line:
#!/usr/bin/python
do whatever you need to do here
by default this does nothing
/home/pi/buttons.py &
To run script in background, if my python file is located boot/crankshaft/buttons.py in SD card?
I also found that the script is killed about 30sec, and need to put: add "RemainAfterExit=yes" to /etc/systemd/system/user_startup.service after ExecStart in section [Service] - but cant find the file location?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi.
I trying to get work pyhton script.
There is file startup.py, is it correct to put there line:
#!/usr/bin/python
do whatever you need to do here
by default this does nothing
/home/pi/buttons.py &
To run script in background, if my python file is located boot/crankshaft/buttons.py in SD card?
I also found that the script is killed about 30sec, and need to put: add "RemainAfterExit=yes" to /etc/systemd/system/user_startup.service after ExecStart in section [Service] - but cant find the file location?
Beta Was this translation helpful? Give feedback.
All reactions