Browse Source

minor changes to mcbe

feature/startup-from-labels
Mario Alegre 4 years ago
parent
commit
f7d6aa41c8
  1. 2
      mcbe/assets/bin/maint
  2. 6
      mcbe/assets/systemd/mcbe.service

2
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=""

6
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

Loading…
Cancel
Save