mirror of
https://github.com/AlexBocken/mykb.git
synced 2024-12-27 14:01:48 +01:00
syntax highlighting for service files
This commit is contained in:
parent
5b03c28feb
commit
ad599eb2d7
@ -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
|
||||
|
@ -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>`.
|
||||
|
||||
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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user