Service file
This commit is contained in:
parent
44147b07f2
commit
de3bcdd7fc
2 changed files with 15 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -40,7 +40,8 @@ package-deb: prepare
|
||||||
--architecture $(ARCH) \
|
--architecture $(ARCH) \
|
||||||
--license "$(LICENSE)" \
|
--license "$(LICENSE)" \
|
||||||
--package $(DIST_DIR) \
|
--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
|
.PHONY: package-rpm
|
||||||
package-rpm: prepare
|
package-rpm: prepare
|
||||||
|
@ -50,4 +51,5 @@ package-rpm: prepare
|
||||||
--architecture $(ARCH) \
|
--architecture $(ARCH) \
|
||||||
--license "$(LICENSE) "\
|
--license "$(LICENSE) "\
|
||||||
--package $(DIST_DIR) \
|
--package $(DIST_DIR) \
|
||||||
$(OUTPUT_SOFT)=/usr/bin/sacrebleu-dns
|
$(OUTPUT_SOFT)=/usr/bin/sacrebleu-dns \
|
||||||
|
extra/config.ini.example=/etc/sacrebleu/config-dns.ini
|
||||||
|
|
11
extra/sacrebleu-dns.service
Normal file
11
extra/sacrebleu-dns.service
Normal 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
|
Loading…
Reference in a new issue