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

CRON not starting on boot #16

Open
SirRob24 opened this issue Mar 30, 2023 · 6 comments
Open

CRON not starting on boot #16

SirRob24 opened this issue Mar 30, 2023 · 6 comments

Comments

@SirRob24
Copy link

I can't seem to get cron to start on boot. I have to manually start the service and I've been trying everything inside the container. From editing the init.d/cron file to making an etc/rc.local file to whatever else. I can't seem to get anything to either start the service or to run a command that would start the service.

Is there maybe an environment variable I can change while setting up the container to change that? I'm all out of ideas here lol.

Thanks!

@brycelarge
Copy link
Owner

brycelarge commented Mar 30, 2023 via email

@SirRob24
Copy link
Author

SirRob24 commented Mar 30, 2023

So I made 2 python scripts. One grabs M3U8s for sporting events and the other creates an EPG for said sporting events. I need the one script to run every 60 seconds and the other script to run once a day.

I thought using cron would be my best bet for scheduling the scripts so I can have everything automated. Now I can use cron but when the container starts up I need to manually go in an turn on cron (service cron start). I just want to get everything completely hands off. That way if my server restarts while I'm away from home I don't have to remote into my machine to restart anything.

@brycelarge
Copy link
Owner

brycelarge commented Mar 30, 2023 via email

@SirRob24
Copy link
Author

Not sure what unsaid is. So I'll assume probably not? lol

@brycelarge
Copy link
Owner

brycelarge commented Mar 30, 2023 via email

@SirRob24
Copy link
Author

I'm actually using docker desktop for windows. I know how to use images that other people have made but don't fully understand how to make/adjust images myself so trying to add cron to start on boot is past my knowledge set so I would really appreciate that! Thanks.

Right now it's just Hockey games but I'm hoping to get it to work for Baseball and Football season as well. I'm scraping the NHL66 site for their international stream links. In order to watch the INT streams you need an IP outside of Canada/USA, so using your container to use open VPN to set my location elsewhere. Fun fact, FFMPEG is the only thing that actually needs to be ran through the VPN which I found pretty cool. So the EPG and the M3U I generate are then fed into xTeve which then go to my Plex server.

The stream links reset every 60 seconds or so so my one script runs every 60 seconds to constantly refresh the links. That way when I select a game on my Plex, FFMEG will start buffering a fresh link so it'll actually play the game.

I do have it working, through it's still far from perfect. Plex doesn't like it when the number of channels change so I'll have to tweet how my scripts make the EPG and M3U so that the number of channels and channels name always stay the same so that way Plex will stop getting mad at me.

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

2 participants