bundlewrap/bundles/minecraft/metadata.py
2021-09-13 10:38:02 +02:00

20 lines
586 B
Python

assert node.has_bundle('java')
defaults = {
'systemd': {
'units': {
'minecraft.service': {
'Unit': {
'Description': 'minecraft',
'After': 'network.target',
},
'Service': {
'User': 'minecraft',
'WorkingDirectory': '/opt/minecraft',
'ExecStart': '/usr/bin/java -Xms1024M -Xmx2560M -jar /opt/minecraft/server.jar nogui',
'Restart': 'always',
},
},
},
},
}