devops-coop / ansible-minecraft

Ansible role for provisioning a vanilla Minecraft server
https://galaxy.ansible.com/devops-coop/minecraft/
Apache License 2.0
57 stars 39 forks source link

Code to generate server.properties seems to hang #23

Open danizen opened 6 years ago

danizen commented 6 years ago

On each first boot, the code to generate server.properties seems to hang. After Ctrl-C of ansible, either local or remote, I find that there are commands to echo stop to the socket hanging and minecraft itself is running, apparently directly from ansible rather than from systemctl. I gather that therefore the named pipe is not running, and therefore minecraft will not exit.

I am able to use the role to achieve infrastructure as code, but not fully automate. Since the server is for my kids, this is adequate.

[vagrant@localhost ~]$ ps -ef | grep java
minecra+ 20326 20325  0 16:28 ?        00:00:00 /bin/sh -c echo "/stop" | java -jar minecraft_server.jar nogui
minecra+ 20328 20326 99 16:28 ?        00:05:55 java -jar minecraft_server.jar nogui
danizen commented 6 years ago

I will try again and wait longer, and see what happens.