syntax highlighting for service files

This commit is contained in:
Alexander Bocken 2023-07-04 12:35:43 +02:00
parent 5b03c28feb
commit ad599eb2d7
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ chown -R /var/lib/anki anki:anki
Using systemd, create a service file: `/etc/systemd/system/anki_sync_server.service`: Using systemd, create a service file: `/etc/systemd/system/anki_sync_server.service`:
```systemd ```ini
[Unit] [Unit]
Description=Personal Anki Sync Server Description=Personal Anki Sync Server
After=network.target After=network.target

View File

@ -5,7 +5,7 @@ General tips and tricks around docker, as it's usage has become unavoidable.
You will be able to start any docker compose program via `systemctl start docker-compose@<program>`. You will be able to start any docker compose program via `systemctl start docker-compose@<program>`.
Create the file `/etc/systemd/system/docker-compose@.service` with the following content: Create the file `/etc/systemd/system/docker-compose@.service` with the following content:
``` ```ini
[Unit] [Unit]
Description=%i service with docker compose Description=%i service with docker compose
PartOf=docker.service PartOf=docker.service
@ -26,7 +26,7 @@ Create directories as necessary and place your `docker-compose.yml` in an approp
Ergo: Your docker-compose.yml should be in `/etc/docker/compose/myprogram/docker-compose.yml`. Ergo: Your docker-compose.yml should be in `/etc/docker/compose/myprogram/docker-compose.yml`.
Reload the daemon and start your service: Reload the daemon and start your service:
``` ```sh
systemctl daemon-reload systemctl daemon-reload
sysetmctl start docker-compose@myprogram sysetmctl start docker-compose@myprogram
``` ```