Help: How to restart an app daily

Howdy friends. I’m running a Satisfactory server off of TrueNAS. If the game server runs long enough, it will start to have some bugs in game. This is documented behavior and the solution is a restart of the game server.

Obviously I can do this manually very easily by hitting the restart button on the app in truenas, but i’d like to have this task done each day automatically. I know chron tasks are an option, but I don’t have the knowledge to write a command for this. Any ideas?

Thank you!

For stop:

midclt call app.stop <app_name>

And pretty similar for start

midclt call app.start <app_name>
1 Like

Is this better than using the following docker commands:

docker stop ix-plex-plex-1
docker start ix-plex-plex-1

In my case, I’m stopping docker for about two minutes each morning to make a non-gz tar backup of the TrueNAS data, then gzipping the tar file after Plex is restarted.

IMHO totally depends on the need:

docker start stop just freeze the container, app.stop start will be a complete “lifecycle”.. on this specific op case would say better app.stop/start, but just for “data integrity backup” docker start stop is reliable

1 Like