You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
440 B

#!/bin/bash
#Configuration
conf_file="valheim-server.ini"
# No need to change anything under this line
# source config parser
. ./lib_ini.sh
server_path=$(ini_read "$conf_file" "server" "srvpath")
cd "$server_path"
check=$(ps -ef | grep -v grep | grep -ic [v]alheim_server.x86_64)
while true; do
check=$(ps -ef | grep -v grep | grep -ic [v]alheim_server.x86_64)
if [ $check -eq 0 ]; then
./valheim-start-raw.sh
fi
sleep 15
done