mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-11-23 11:09:04 +00:00
Add systemd units
This commit is contained in:
1 parent
c4a57edc7f
commit
3230cc0a0a
4 files changed
+49
-5
No files matched your search
@@ -0,0 +1,14 @@
|
||||
.PHONY: install uninstall
|
||||
|
||||
PREFIX = /usr/local
|
||||
SYSTEMD_DIR = /usr/lib/systemd
|
||||
SYSTEMD_UNIT_DIR = $(SYSTEMD_DIR)/system
|
||||
|
||||
install:
|
||||
install -Dm0644 doh-client.service "$(DESTDIR)$(SYSTEMD_UNIT_DIR)/doh-client.service"
|
||||
install -Dm0644 doh-server.service "$(DESTDIR)$(SYSTEMD_UNIT_DIR)/doh-server.service"
|
||||
systemctl daemon-reload || true
|
||||
|
||||
uninstall:
|
||||
rm -f "$(DESTDIR)$(SYSTEMD_UNIT_DIR)/doh-client.service" "$(DESTDIR)$(SYSTEMD_UNIT_DIR)/doh-server.service"
|
||||
systemctl daemon-reload || true
|
||||
Reference in new issue
Block a user