Last active
November 27, 2025 05:49
-
-
Save Deliquescence/fd0b374dcb8461a8261d19d0641043b7 to your computer and use it in GitHub Desktop.
Minecraft server systemd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Minecraft Server | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| Restart=always | |
| RestartSec=30 | |
| TimeoutSec=120 | |
| User=minecraft | |
| Group=minecraft | |
| ExecStart=/home/minecraft/Minecraft/start.sh | |
| [Install] | |
| WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Start minecraft server after delay | |
| [Timer] | |
| OnBootSec=30sec | |
| OnActiveSec=30sec | |
| AccuracySec=1s | |
| Unit=minecraft.service | |
| [Install] | |
| WantedBy=timers.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| cd "/home/minecraft/Minecraft/Server" | |
| source "/home/minecraft/Minecraft/Server/run.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment