Skip to content

Web interface with Ark Server tools #10

@pinedours

Description

@pinedours

Hello I'm trying to combine yourbeautiful interface with the great Ark Server tools we can find here :
https://github.com/FezVrasta/ark-server-tools
(I posted my message on his github too)
So I replaced in ~/ark_server_manager/scripts/server_start.sh

#! /bin/bash
# Check if gedit is running
if pgrep "ShooterGame" > /dev/null
then
    echo "Ark Server is already running ..."
else
  echo "starting ark server: $1"
  ulimit -n 100000
  ./ShooterGameServer TheIsland?listen?SessionName=$1?MaxPlayers=$4?ServerPassword=$2?ServerAdminPassword=$3 -server -log &
  echo ServerPID:$!
fi

by

#! /bin/bash
# Check if gedit is running
if pgrep "ShooterGame" > /dev/null
then
    echo "Ark Server is already running ..."
else
  echo "starting ark server: $1"
  ulimit -n 100000
  arkmanager start &
  echo ServerPID:$!
fi

but I have a PID error who affects the "stop" action, because impossible to him to stop the good PID.. do you know why ?
I did the same things with the "update_ark.sh" and all is fine.
I m trying to do that for moderators on my server..
I someone knows to combine those two tools properly it will be great..! :)
Thank you !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions