Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • General Discussion /
avatar image
Question by Brent Batas (Lisk) · Apr 14, 2017 at 03:35 PM · Custom Game Serversgame manager

Close custom game server after specified amount of time?

Currently, I have my custom game server coded so that an instance exits when a match ends (victory/defeat) or all players leave the game or 60 minutes have elapsed (games should only take about 40 minutes max, so 60 is a safe upper bound).

However, in certain circumstances (such as server dropping someone's connection or erroring, I think), the server doesn't exit. I know this because I've observed some servers that have been running for 6+ hours.

Is it possible to configure the Game Wrangler or pass in some kind of command line argument that ensures that the server instance shuts down after, say, 1 hour after it is started?

Comment
Chad Franklin

People who like this

1 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Apr 14, 2017 at 04:15 PM

Not currently - the way the system works for custom game servers is that instances only terminate if the executable exits or you use the terminate option in the Game Manager.

Comment
Brent Batas (Lisk)

People who like this

1 Show 3 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Chad Franklin · Jun 05, 2020 at 07:25 AM 0
Share

Hello @Brendan, I have the same concern, and is this still the case? No way to ensure the container is closed after a period of time?

avatar image Brendan ♦♦ Chad Franklin · Jun 05, 2020 at 08:13 PM 0
Share

We do not forcibly shut down your executable currently. The hosted servers will continue to be available until the game server code exits (whether a normal exit or a crash), at which point they are reclaimed. For others, there's a Feature Request on this topic here if you want to up-vote (Like) it: https://community.playfab.com/idea/21647/automatically-shutdown-a-server-after-x-amount-of.html

avatar image Chad Franklin Brendan ♦♦ · Jun 05, 2020 at 11:08 PM 0
Share

Alright, thanks for the update :)

avatar image

Answer by Montana Tuska · Apr 14, 2017 at 05:18 PM

Why not just add in your own timer to kill the server after an hour?

Comment
Brent Batas (Lisk)

People who like this

1 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Allowing User to Save Images/Audio/Video File on Playfab 1 Answer

    SSH or RDP into Linux-based Container? 1 Answer

    Is having a a "dummy" region selection rule the best practice if we use a single region? 1 Answer

    Help with Server Architecture 2 Answers

    Application.Quit isn't changing server from active to the standby ?. 0 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges