From ad599eb2d713dd4907fcd21ba7dc4d1570003495 Mon Sep 17 00:00:00 2001 From: AlexBocken Date: Tue, 4 Jul 2023 12:35:43 +0200 Subject: [PATCH] syntax highlighting for service files --- docs/anki_sync_server.md | 2 +- docs/docker.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/anki_sync_server.md b/docs/anki_sync_server.md index 82b6fbb..0289edd 100644 --- a/docs/anki_sync_server.md +++ b/docs/anki_sync_server.md @@ -57,7 +57,7 @@ chown -R /var/lib/anki anki:anki Using systemd, create a service file: `/etc/systemd/system/anki_sync_server.service`: -```systemd +```ini [Unit] Description=Personal Anki Sync Server After=network.target diff --git a/docs/docker.md b/docs/docker.md index c6fcebc..542d65c 100644 --- a/docs/docker.md +++ b/docs/docker.md @@ -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@`. Create the file `/etc/systemd/system/docker-compose@.service` with the following content: -``` +```ini [Unit] Description=%i service with docker compose 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`. Reload the daemon and start your service: -``` +```sh systemctl daemon-reload sysetmctl start docker-compose@myprogram ```