Skip to content

Commit

Permalink
Fix unit dependency
Browse files Browse the repository at this point in the history
Signed-off-by: mi2428 <mi2428782020@gmail.com>
  • Loading branch information
mi2428 committed Sep 1, 2021
1 parent 0118c0b commit 770ebdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ On monitoring hosts:
% sudo systemctl start dns-query-interceptor@vsix.service
```

**NOTE:** On VyOS, `systemctl enable` seems to fail, but it actually works. Remember to run `systemctl restart` after system reboot.

Uninstall from systemd and purge the database - note that this is a destructive operation and cannot be undone.

```
Expand Down
3 changes: 0 additions & 3 deletions systemd/dns-query-interceptor@.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[Unit]
Description=DNS Query Interceptor
Requires=docker.service

[Service]
Type=simple
Expand All @@ -9,8 +8,6 @@ RestartSec=10
RestartForceExitStatus=1
ExecStart=/usr/local/bin/interceptor -i %i -q -A --db-host dns-interceptor-db.fujisawa.vsix.wide.ad.jp:5432 --db-name interceptor --db-user vsix --db-password-file /var/lib/dns-query-interceptor/.secrets/db_password.txt
RemainAfterExit=yes
OOMPolicy=stop

[Install]
Also=docker.service
WantedBy=multi-user.target

0 comments on commit 770ebdb

Please sign in to comment.