Skip to content

Instantly share code, notes, and snippets.

@AI-nsley69
Last active October 19, 2022 09:20
Show Gist options
  • Save AI-nsley69/ba4050b9bc3584b59d0424f25fda99a2 to your computer and use it in GitHub Desktop.
Save AI-nsley69/ba4050b9bc3584b59d0424f25fda99a2 to your computer and use it in GitHub Desktop.
Oracle Cloud Always Free Tier [Files]
[Unit]
Description=A Minecraft Server
[Service]
Type=simple
WorkingDirectory=/home/opc/minecraft
ExecStart=/usr/bin/java -jar -Xms4G -Xmx4G fabric-server-launch.jar
User=opc
Restart=on-failure
RestartSec=3
StartLimitIntervalSec=5m
StartLimitBurst=3
Sockets=minecraft.socket
StandardInput=socket
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
[Unit]
PartOf=minecraft.service
[Socket]
ListenFIFO=%t/minecraft.stdin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment