inexorgame-obsolete / deprecated-cube-engine-inexor

UNMAINTAINED: Please have a look at the vulkan-renderer
https://inexor.org
zlib License
11 stars 1 forks source link

As an admin or a developer I want to start multiple instances of Inexor Flex #408

Closed aschaeffer closed 7 years ago

aschaeffer commented 7 years ago

Goal

Tasks

Behaviour

PID file exists Port in use Description Action
no no Flex is not running
  • - [x] Write PID file
  • - [x] Start normally
yes no PID file left over
  • - [x] Read process id from PID file
  • - [x] Kill process with process id (if exists)
  • - [x] Delete PID file
  • - [x] Write PID file
  • - [x] Finally start normally
no yes Another program uses port
  • - [x] Print message the another program is blocking the port
  • - [x] Exit with error
yes yes Flex is already running
  • - [x] Read process id from PID file
  • - [x] Print message the Flex is running including PID and port
  • - [x] Exit with error
aschaeffer commented 7 years ago

Done.

https://github.com/inexorgame/inexor-flex/compare/401b1aace9f8...a2221631b59b