Skip to content

Instantly share code, notes, and snippets.

@indutny indutny/manifest.xml
Created Aug 23, 2013

Embed
What would you like to do?
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type="manifest" name="minecraft">
<service name="minecraft" type="service" version="1">
<create_default_instance enabled="true"/>
<single_instance/>
<dependency name="milestone" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/milestone/multi-user"/>
</dependency>
<exec_method type="method" name="start"
exec="/opt/local/minecraft/start.sh" timeout_seconds="60"/>
<exec_method type="method" name="stop" exec=":kill" timeout_seconds="60"/>
<stability value="Unstable"/>
<template>
<common_name>
<loctext xml:lang="C">Minecraft</loctext>
</common_name>
</template>
</service>
</service_bundle>
#!/usr/bin/sh
cd /opt/local/minecraft && /opt/local/bin/java -d64 -server -Xms1G -Xmx1792M -Djava.security.egd=file:/dev/random -XX:-UseVMInterruptibleIO -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=4 -XX:+AggressiveOpts -jar minecraft_server.jar nogui &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.