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
1. Change to your home directory.
```console
$ cd ~
```
```console
$ cd ~
```
1. Download the project.
```console
$ git clone git@gitlab.com:adouglas/minecraft-systemd-services.git
```
```console
$ git clone git@gitlab.com:adouglas/minecraft-systemd-services.git
```
1. Change to the project directory.
```console
$ cd minecraft-systemd-services
```
```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
```
```console
$ nano minecraft-backup.service
```
1. Set file permissions.
```console
$ chmod 644 minecraft-\*
```
```console
$ chmod 644 minecraft-\*
```
1. Set file ownership and group.
```console
$ chown root:root minecraft-\*
```
```console
$ chown root:root minecraft-\*
```
1. Move Systemd unit files.
```console
# mv minecraft-\* /etc/systemd/system/
```
```console
# mv minecraft-\* /etc/systemd/system/
```
1. Enable services.
```console
# systemctl enable minecraft-paper.service
# systemctl enable minecraft-backup.timer
# systemctl enable minecraft-stats.timer
```
```console
# systemctl enable minecraft-paper.service
# systemctl enable minecraft-backup.timer
# systemctl enable minecraft-stats.timer
```
# Usage