Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start issue when used as a Service #10

Open
mustafasabirli opened this issue Dec 3, 2023 · 2 comments
Open

Start issue when used as a Service #10

mustafasabirli opened this issue Dec 3, 2023 · 2 comments

Comments

@mustafasabirli
Copy link

Hi,

I have a problem with stat.py script while I would like to use in /lib/systemd/system/ as a .service.

1
2

When I used just a "python3 stats.py &" there is no problem.

3

how can i solve this proglem. I would like to run this script as a service while my pi opened.

@individuallover2307
Copy link

individuallover2307 commented Nov 20, 2024

@reboot /home/pi/OLED_display & is wrong. correct crontab script is @reboot /home/pi/OLED_Stats/OLED_display &

@mklements
Copy link
Owner

@reboot /home/pi/OLED_display & is wrong. correct crontab script is @reboot /home/pi/OLED_Stats/OLED_display &

The command is correct. The previous line downloads a copy of the OLED_display script to the home directory. It seems to be more universally stable than referencing the script within a folder. The script changes the directory and then calls the display script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants