Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by ilyas · Apr 03, 2014 at 08:49 AM · serverubuntu

How to shut down an Unity application on Amazon Ubuntu EC2 server ?

Hello community !

I am developing a Unity-Server-Application to run it on an Amazon Ubuntu EC2 server. It success to run it, it works, but I don't know how to shut down it, because I don't have a console of the unity-server-application with -batchmode commend line.

Have you any idea please ?

Comment
Add comment
10 |3000 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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by ByteSheep · Apr 03, 2014 at 09:13 AM

if you are accessing the Ubuntu server through ssh then you should be able to use the following command to see all running processes:

 ps aux

or you can search for just the MasterServer process using:

 ps aux | grep MasterServer

the column on the very left is the process id - you need this number to be able to tell the process to quit. So for instance:

 ec2-user 21875  0.4  1.9 159464 11636 ?        Sl   Apr02   1:38 ./MasterServer -p 23466

here 21875 is the pid (process id), so now we can use that to stop the master server:

 kill 21875

no when you do:

 ps aux | grep MasterServer

you shouldn't get any results any more..

Hope I understood correctly what you are trying to do ;)

Comment
Add comment · Show 4 · Share
10 |3000 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 ilyas · Apr 03, 2014 at 09:41 AM 0
Share

Thanks for the answer. But kill commend don't shut down the server I already try it. And i don't want to shut down a $$anonymous$$asterServer but as I said a Unity Application (server). What i am looking for it's to execute Application.Quit() .

avatar image ByteSheep · Apr 03, 2014 at 09:49 AM 0
Share

if you have access to the command line on the Ubuntu machine then there will definitely be a way to close the application using a command - the kill command should work for any process running..

avatar image ByteSheep · Apr 03, 2014 at 10:16 AM 0
Share

O$$anonymous$$ just tested closing a standalone unity application using the kill command on mac osx:

image 1

So by using the ps aux command you can see the returned listing of the running apllication and it's pid. When you use the kill command with the pid (highlighted in blue) it closes the unity application.

After that when using the ps aux command again the process is no longer running.

image 2

If that still doesn't work for you then give me a couple more details of how exactly you are trying to close the game.

screen shot 2014-04-03 at 12.09.08.png (479.7 kB)
screen shot 2014-04-03 at 12.09.39.png (485.4 kB)
avatar image Alishev · Nov 24, 2014 at 12:17 PM 0
Share

How do you run it?

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.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Networking Question 1 Answer

Enable logging in custom script (Photon Server) 2 Answers

Unity networking tutorial? 6 Answers

Can I use Unity as a server-side renderer on linux? 0 Answers

Cloud recognition in Vuforia 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges