Service file

This commit is contained in:
Mael G. 2020-12-13 21:05:00 -04:00
parent 44147b07f2
commit de3bcdd7fc
2 changed files with 15 additions and 2 deletions

View file

@ -40,7 +40,8 @@ package-deb: prepare
--architecture $(ARCH) \
--license "$(LICENSE)" \
--package $(DIST_DIR) \
$(OUTPUT_SOFT)=/usr/bin/sacrebleu-dns
$(OUTPUT_SOFT)=/usr/bin/sacrebleu-dns \
extra/config.ini.example=/etc/sacrebleu/config-dns.ini
.PHONY: package-rpm
package-rpm: prepare
@ -50,4 +51,5 @@ package-rpm: prepare
--architecture $(ARCH) \
--license "$(LICENSE) "\
--package $(DIST_DIR) \
$(OUTPUT_SOFT)=/usr/bin/sacrebleu-dns
$(OUTPUT_SOFT)=/usr/bin/sacrebleu-dns \
extra/config.ini.example=/etc/sacrebleu/config-dns.ini

View file

@ -0,0 +1,11 @@
[Unit]
Description=Sacrebleu DNS Server
After=network.target
[Service]
Type=simple
WorkingDirectory=/etc/sacrebleu/
ExecStart=/usr/bin/sacrebleu-dns --config /etc/sacrebleu/config-dns.ini
[Install]
WantedBy=multi-user.target