Closed bedrockbusters closed 1 year ago
docker ps
shows you all running containers. docker ps -a
shows you all containers that are stopped or were killed otherwise.
docker inspect asa-server-1
shows you all details of your container, including why it crashed (e.g. out of memory). Obviously, ASA specific crashes won't be identified by docker, just the container exit code.
As for checking whether the savegame was saved: I don't see any other way than checking when the files were modified. But why exactly do you want to check it that often? If you want to be extra sure, you can run admincheat saveworld
before you leave the server (given you are logged in as admin ingame).
If you want a quick bash script you can run (You can get much fancier than this, this is very basic):
#!/bin/bash
echo
echo "Your ARK was last saved:"
date -r /var/lib/docker/volumes/opt_server-files-1/_data/ShooterGame/Saved/SavedArks/TheIsland_WP/TheIsland_WP.ark
echo
echo "The status of your ARK server is:"
docker inspect asa-server-1 | grep Status
echo
exit
You WILL need root access to touch these files
Now run sudo chmod +x checksave.sh
Last run sudo ./checksave.sh
If you wanted to make it EVEN EASIER :
run (in terminal) sudo ln -s /whereyourfileis/checksave.sh /usr/bin/checksave
Gives you a symlink so now you can simply type in sudo checksave
and poof, there is all your info.
This will output the last time your ark was saved and then the condition of your ARK server container. You could get fancy and put that in crontab to display @ certain points or even write code to bounce it off an SMTP server so you get automated updates. The sky is the limit.
@bedrockbusters has your question been answered?
Yes. Thank you very much!
On Fri, Nov 10, 2023, 12:34 PM Manuel Schnitzer @.***> wrote:
@bedrockbusters https://github.com/bedrockbusters has your question been answered?
— Reply to this email directly, view it on GitHub https://github.com/mschnitzer/ark-survival-ascended-linux-container-image/issues/17#issuecomment-1806234295, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHKH5A7OA6AS652ZJRSUXJ3YDZXUVAVCNFSM6AAAAAA7DTMUL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWGIZTIMRZGU . You are receiving this because you were mentioned.Message ID: <mschnitzer/ark-survival-ascended-linux-container-image/issues/17/1806234295 @github.com>
Thanks for confirming this, closing now. Feel free to open another issue if you have any further questions.
Got a quick question. Is there a way to check the running state of the server? If I'm not sure if the server is running or not, is there a command to check? Also, check the last time the server was saved. I know I can navigate to the save directory run "ls -la" and see the last time the save file was modified, but that's a little tedious.