-
Notifications
You must be signed in to change notification settings - Fork 5
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
Comments
Hi there,Containers don’t always include everything an os has to offer. Xteve runs updates on its own so there is no need to have a cron running.What are you trying to run with a cron?On 30 Mar 2023, at 06:15, SirRob24 ***@***.***> wrote:
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!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
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. |
Are you using unsaid by any chance? On 30 Mar 2023, at 07:19, SirRob24 ***@***.***> wrote:
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 anything 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.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Not sure what unsaid is. So I'll assume probably not? lol |
It’s a nas system and it has the ability to run scrips which I use to add functionality to other containers.Ok I’ll add cron capabilities to the docker for you. Will be sometime in the next 6 hours when I find a gap.Can I ask what sporting events your compiling with your scrip, sounds like an interesting project ?Sent from my iPhoneOn 30 Mar 2023, at 07:25, SirRob24 ***@***.***> wrote:
Not sure what unsaid is. So I'll assume probably not? lol
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
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. |
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!
The text was updated successfully, but these errors were encountered: