mschnitzer / ark-survival-ascended-linux-container-image

A docker/podman container that is able to run an ARK: Survival Ascended on a Linux host.
85 stars 17 forks source link

Possibility to monitor the server status #69

Closed heusmich closed 4 months ago

heusmich commented 4 months ago

Hi,

Is there a possibility to monitor the status of the installed servers (if they are stopped or started), for example with a cronjob? Two days ago I restarted my root server and forgot to start the ASA servers again, so they were unavailable until I manually started them again.

I have some other game servers installed with LinuxGSM and there is a monitor function available. If it´s not available in this docker image, is it possible to implement it somehow?

Best regards heusmich

mschnitzer commented 4 months ago

The status can be checked by running docker-compose ps -a.

If you want to have an auto restart functionality, you can add a restart: always statement to the docker-compose.yml file below that line:

https://github.com/mschnitzer/ark-survival-ascended-linux-container-image/blob/5a5fc84ab6f1ef77eb796f436e832aa355336fca/docker-compose.yml#L8

You would then need to run docker-compose up -d (be careful, it restarts your server right away) so that this change gets active upon reboot.

heusmich commented 4 months ago

OK, thanks for the fast help. Then I will add this restart command to my docker compose file and restart the server with the "docker-compose up -d" command.

mschnitzer commented 4 months ago

Yes, that's the way to go. I'll close the feature then, please reopen if it doesn't work.