• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Scheduled Restart

     
    • 0 Vote(s) - 0 Average

    Scheduled Restart

    Checkerknight
    Offline

    Junior Member

    Posts: 36
    Threads: 14
    Joined: 2023 Jul
    Reputation: 0
    Country:United States
    #1
    2025-03-01, 12:51 PM
    Not sure if this belongs in feature requests, but is there currently a way to have Jellyfin do scheduled auto restarts? The Jellyfin app doesn't always seem to close on some of my Chromecast devices and occasionally users are left logged in and even paused on a movie (most likely user error) which causes constant hard drive activity and Id like to mitigate that.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-03-01, 07:02 PM (This post was last modified: 2025-03-01, 07:03 PM by TheDreadPirate. Edited 1 time in total.)
    What OS is the server running on? Jellyfin, itself, does not have a way to do this but if you are running Jellyfin in Linux or Docker you can setup cronjobs to do periodic restarts.

    It has been a while since I've been a Windows admin, but I recall that Windows SERVER also had ways to setup scheduled tasks. But I'm not sure non-server Windows editions can do that.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Checkerknight
    Offline

    Junior Member

    Posts: 36
    Threads: 14
    Joined: 2023 Jul
    Reputation: 0
    Country:United States
    #3
    2025-03-01, 11:42 PM
    The server is running on my raspberry pi, so Linux. I thought worse case to just restart the pi, but if there a way to just restart Jellyfin?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-03-02, 03:12 AM (This post was last modified: 2025-03-02, 03:13 AM by TheDreadPirate.)
    If it is installed as a service, not with Docker, you could simply set up a cronjob on the root user.

    Code:
    sudo su   # escalate to the root user
    crontab -e   # edit the current user's crontab

    An example cronjob will be something like this. The time I choose for this example is 4am at the top of the hour. Keep in mind this is 4am for whichever time zone your computer is set to. So make sure you either set your system timezone to your local time or if your system clock is GMT and you want to keep it that way you set the time in the cronjob accordingly.

    Code:
    0 4 * * * systemctl restart jellyfin

    Save and quit like you would from a text editor.

    That's it. Now Jellyfin will restart at 4am every day.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    1
    Checkerknight
    Offline

    Junior Member

    Posts: 36
    Threads: 14
    Joined: 2023 Jul
    Reputation: 0
    Country:United States
    #5
    2025-03-04, 02:02 AM
    I just went ahead and added this into my crontab, and funny enough 4am works just fine for me. Just have to wait around and make sure it takes effect but as long as it runs this was exactly what I was looking for! Thank you so much
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode