docs: correct formatting
This commit is contained in:
parent
81a36ecb96
commit
e1b86ab6a5
56
README.md
56
README.md
|
@ -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,
|
||||
- Ensure paths are correct (ReadWriteDirectories, WorkingDirectory, ExecStart,
|
||||
ExecStop).
|
||||
- Ensure timers property "OnUnitActiveSec" (backup interval) is set as
|
||||
- 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
|
||||
|
||||
|
|
Reference in New Issue