docs: correct formatting

This commit is contained in:
Adam Douglas 2020-02-06 23:05:03 -06:00
parent 81a36ecb96
commit e1b86ab6a5
1 changed files with 28 additions and 28 deletions

View File

@ -41,43 +41,43 @@ at the CLI.
## On Linux - Manual ## On Linux - Manual
1. Change to your home directory. 1. Change to your home directory.
```console ```console
$ cd ~ $ cd ~
``` ```
1. Download the project. 1. Download the project.
```console ```console
$ git clone git@gitlab.com:adouglas/minecraft-systemd-services.git $ git clone git@gitlab.com:adouglas/minecraft-systemd-services.git
``` ```
1. Change to the project directory. 1. Change to the project directory.
```console ```console
$ cd minecraft-systemd-services $ cd minecraft-systemd-services
``` ```
1. Edit each applicable unit file(s). 1. Edit each applicable unit file(s).
- Ensure paths are correct (ReadWriteDirectories, WorkingDirectory, ExecStart, - Ensure paths are correct (ReadWriteDirectories, WorkingDirectory, ExecStart,
ExecStop). ExecStop).
- Ensure timers property "OnUnitActiveSec" (backup interval) is set as - Ensure timers property "OnUnitActiveSec" (backup interval) is set as
desired. desired.
```console ```console
$ nano minecraft-backup.service $ nano minecraft-backup.service
``` ```
1. Set file permissions. 1. Set file permissions.
```console ```console
$ chmod 644 minecraft-\* $ chmod 644 minecraft-\*
``` ```
1. Set file ownership and group. 1. Set file ownership and group.
```console ```console
$ chown root:root minecraft-\* $ chown root:root minecraft-\*
``` ```
1. Move Systemd unit files. 1. Move Systemd unit files.
```console ```console
# mv minecraft-\* /etc/systemd/system/ # mv minecraft-\* /etc/systemd/system/
``` ```
1. Enable services. 1. Enable services.
```console ```console
# systemctl enable minecraft-paper.service # systemctl enable minecraft-paper.service
# systemctl enable minecraft-backup.timer # systemctl enable minecraft-backup.timer
# systemctl enable minecraft-stats.timer # systemctl enable minecraft-stats.timer
``` ```
# Usage # Usage