From 3e77e91399f2686b1e3d1342ef87a6a162c70136 Mon Sep 17 00:00:00 2001 From: Adam Douglas Date: Fri, 7 Feb 2020 21:14:18 -0600 Subject: [PATCH] docs: correct step order, prompt and title --- README.md | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 265d50a..1f15672 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,13 @@ Systemd unit files for use with the Minecraft Server and associated services - Backup the Minecraft server directory. - To an archive. - Sync to a desired destination. -- Keep [MinecraftStats](https://github.com/pdinklag/MinecraftStats) data synced. +- Sync Minecraft stats data to [MinecraftStats](https://github.com/pdinklag/MinecraftStats). # System Requirements - GNU Linux operating System - [Git](https://git-scm.com/) -- [Wardenctl](https://gitlab.com/adouglas/wardenctl) +- [Wardenctl](https://gitlab.com/adouglas/wardenctl) (optional if one replaces wardenctl commands) # Installation @@ -38,7 +38,7 @@ proceeding character. In this case backslash character is not to to be entered at the CLI. - These instructions are an example of installation and configuration. -## On Linux - Manual +## Manual 1. Change to your home directory. ```console @@ -52,25 +52,9 @@ at the CLI. ```console $ cd minecraft-systemd-services ``` -1. Edit each applicable unit file(s). - - Ensure paths are correct (ReadWriteDirectories, WorkingDirectory, ExecStart, -ExecStop). - - Ensure timers property "OnUnitActiveSec" (backup interval) is set as -desired. - ```console - $ nano minecraft-backup.service - ``` -1. Set file permissions. +1. Copy Systemd unit files. ```console - $ chmod 644 minecraft-\* - ``` -1. Set file ownership and group. - ```console - $ chown root:root minecraft-\* - ``` -1. Move Systemd unit files. - ```console - # mv minecraft-\* /etc/systemd/system/ + # cp minecraft-* /etc/systemd/system/ ``` ``` minecraft-backup.service @@ -81,6 +65,22 @@ desired. minecraft-stats.timer minecraft-vanilla.service ``` +1. Edit each applicable unit file(s). + - Ensure paths are correct (ReadWriteDirectories, WorkingDirectory, ExecStart, +ExecStop). + - Ensure timers property "OnUnitActiveSec" (backup interval) is set as +desired. + ```console + $ nano minecraft-backup.service + ``` +1. Set file permissions. + ```console + # chmod 644 /etc/systemd/system/minecraft-* + ``` +1. Set file ownership and group. + ```console + # chown root:root /etc/systemd/system/minecraft-* + ``` 1. Enable services. ```console # systemctl enable minecraft-paper.service