2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-20 11:21:14 +00:00

Fix binary path in service file examples

This commit is contained in:
asonix 2023-07-09 21:02:27 -05:00
parent 3aabe38a24
commit 9e030b6183

View file

@ -109,7 +109,7 @@ too.
```service ```service
[Service] [Service]
Type=simple Type=simple
ExecStart=/nix/store/lblq0ns1p86qnpm3kd86ljpg2yx2i06b-pict-rs-0.4.1 run ExecStart=/nix/store/lblq0ns1p86qnpm3kd86ljpg2yx2i06b-pict-rs-0.4.1/bin/pict-rs run
Restart=on-failure Restart=on-failure
``` ```
@ -145,7 +145,7 @@ After=network-online.target
[Service] [Service]
Type=simple Type=simple
ExecStart=/nix/store/lblq0ns1p86qnpm3kd86ljpg2yx2i06b-pict-rs-0.4.1 run ExecStart=/nix/store/lblq0ns1p86qnpm3kd86ljpg2yx2i06b-pict-rs-0.4.1/bin/pict-rs run
Restart=on-failure Restart=on-failure
Environment="PICTRS__SERVER__ADDRESS=127.0.0.1:8080" Environment="PICTRS__SERVER__ADDRESS=127.0.0.1:8080"
Environment="PICTRS__SERVER__API_KEY=SOME-REALLY-SECRET-KEY" Environment="PICTRS__SERVER__API_KEY=SOME-REALLY-SECRET-KEY"
@ -165,7 +165,7 @@ Instead of configuring pict-rs with environment variables, we can instead use a
First, we'll update our `ExecStart` entry to tell pict-rs to load the configuration file. First, we'll update our `ExecStart` entry to tell pict-rs to load the configuration file.
```service ```service
ExecStart=/nix/store/lblq0ns1p86qnpm3kd86ljpg2yx2i06b-pict-rs-0.4.1 -c /etc/pict-rs.toml run ExecStart=/nix/store/lblq0ns1p86qnpm3kd86ljpg2yx2i06b-pict-rs-0.4.1/bin/pict-rs -c /etc/pict-rs.toml run
``` ```
Our full service file should now look like this: Our full service file should now look like this:
@ -177,7 +177,7 @@ After=network-online.target
[Service] [Service]
Type=simple Type=simple
ExecStart=/nix/store/lblq0ns1p86qnpm3kd86ljpg2yx2i06b-pict-rs-0.4.1 -c /etc/pict-rs.toml run ExecStart=/nix/store/lblq0ns1p86qnpm3kd86ljpg2yx2i06b-pict-rs-0.4.1/bin/pict-rs -c /etc/pict-rs.toml run
Restart=on-failure Restart=on-failure
``` ```