Revert "Fix server offline issue after OGP reference removal in PR #5"

This commit is contained in:
Frank Harris 2025-09-05 19:16:04 -04:00 committed by GitHub
parent 15d147faab
commit 1ac7d9b3c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 65 additions and 64 deletions

View file

@ -7,16 +7,16 @@ agent_user=OGP_USER
# Start function.
start() {
echo "Starting Game Server Agent..."
echo "Starting OGP Agent..."
cd $agent_dir
su -c "screen -d -m -t agent -c screenrc -S agent ./agent_run -pidfile agent_run.pid" $agent_user &> $agent_dir/agent.svc &
su -c "screen -d -m -t ogp_agent -c ogp_screenrc -S ogp_agent ./ogp_agent_run -pidfile ogp_agent_run.pid" $agent_user &> $agent_dir/ogp_agent.svc &
echo
}
# Stop function.
stop() {
echo "Stopping Game Server Agent..."
kill `cat $agent_dir/agent_run.pid`
echo "Stopping OGP Agent..."
kill `cat $agent_dir/ogp_agent_run.pid`
}
restart() {