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.
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.
Save and quit like you would from a text editor.
That's it. Now Jellyfin will restart at 4am every day.
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.