Created
May 19, 2023 03:20
-
-
Save hashy0917/f7832245c70ec9e040345dd3c4935412 to your computer and use it in GitHub Desktop.
マイクラのbedrockサーバーが停止しても自動的に再起動したりするようにするやつ
This file contains 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 Bedrock Version Server | |
[Service] | |
ExecStart=start-minecraft.sh | |
Restart=always | |
User=hashy | |
Type=forking | |
[Install] | |
WantedBy=default.target |
This file contains 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/bash | |
cd /home/hashy/bedrockED | |
tmux new-session -d "LD_LIBRARY_PATH=. ./bedrock_server" |
Discordに稼働状況通知したりしたければstart-minecraft.sh
の中に仕込めばOK
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
やった事