From f7d6aa41c87d44275782fd96e6d0d622f0fe5ec0 Mon Sep 17 00:00:00 2001 From: Mario Alegre Date: Thu, 4 Mar 2021 21:23:19 -0500 Subject: [PATCH] minor changes to mcbe --- mcbe/assets/bin/maint | 2 +- mcbe/assets/systemd/mcbe.service | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mcbe/assets/bin/maint b/mcbe/assets/bin/maint index 01f6ad9..e3a1f59 100755 --- a/mcbe/assets/bin/maint +++ b/mcbe/assets/bin/maint @@ -29,7 +29,7 @@ mcbe-backup worlds-hourly-$hour # 10#$var construction is to force base-10 interpretation of variable # because otherwise, numbers starting with 0 are interpreted as octal -if [[ 10#$hour -eq 1 ]]; then +if [[ 10#$hour -eq 4 ]]; then # if no players are present, restart the server # should help deal with any memory leaks or other bugs players="" diff --git a/mcbe/assets/systemd/mcbe.service b/mcbe/assets/systemd/mcbe.service index 316c37d..99f9608 100644 --- a/mcbe/assets/systemd/mcbe.service +++ b/mcbe/assets/systemd/mcbe.service @@ -2,12 +2,12 @@ # Implicit needs are explicitly needed to survive shutdown till stop finishes After=network.target BindsTo=mcbe.socket -Description=Minecraft Bedrock Edition server +Description=Minecraft Bedrock Edition Server [Service] -ExecReload=/bin/bash -c "echo reload > /run/mcb" -ExecStop=-/bin/bash -c "echo stop > /run/mcb" ExecStart=/bin/bash -c "LD_LIBRARY_PATH=. ./bedrock_server" +ExecStop=-/bin/bash -c "echo stop > /run/mcb" +ExecReload=/bin/bash -c "echo reload > /run/mcb" SuccessExitStatus=1 User=mcadmin WorkingDirectory=/home/mcadmin