How do I auto start the script on detached mode on reboot? #526
-
I am running the script barebone on RaspberryPi 4, with this command So, how do I make it start automatically after reboots without having to keep the terminal window open all the time? I also tried Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You could set up a cronjob like so: Alternatively you could use something like systemd or supervisord to have it auto-start. The former should be pre-installed but requires sudo, the latter can be run by any user. Also regarding your email verification; you probably want to log in interactively first instead of extracting and copying your cookie. That way your miner can stay logged in in case you switch sessions on your desktop browser. |
Beta Was this translation helpful? Give feedback.
You could set up a cronjob like so:
@reboot python /home/pi/Twitch-Channel-Points-Miner-v2/run.py
Keep in mind that this is non-standard and may or may not work.
Alternatively you could use something like systemd or supervisord to have it auto-start. The former should be pre-installed but requires sudo, the latter can be run by any user.
Also regarding your email verification; you probably want to log in interactively first instead of extracting and copying your cookie. That way your miner can stay logged in in case you switch sessions on your desktop browser.