Commit 921feae2 authored by Tomas Krizek's avatar Tomas Krizek Committed by Petr Špaček

systemd: add knot-resolver alias

The `knot-resolver` name is used for paths and user name. Creating a
systemd alias with the same name is user-friendly to end users who won't
have to remember another name (`kresd`).

Note: Systemd Alias is only created after service is enabled. Packagers
are thus advised to create symlinks for unit files during package installation
so users can use `knot-resolver` name right from the start.
parent 8ffb00f8
......@@ -3,6 +3,7 @@ Description=Knot DNS Resolver control socket
Documentation=man:kresd(8)
Before=sockets.target
PartOf=kresd.socket
Alias=knot-resolver-control.socket
[Socket]
ListenStream=/run/knot-resolver/control
......
......@@ -3,6 +3,7 @@ Description=Knot DNS Resolver TLS network listener
Documentation=man:kresd(8)
Before=sockets.target
PartOf=kresd.socket
Alias=knot-resolver-tls.socket
[Socket]
ListenStream=853
......
[Unit]
Description=Knot DNS Resolver daemon
Documentation=man:kresd(8)
Alias=knot-resolver.service
[Service]
Type=notify
......
......@@ -2,6 +2,7 @@
Description=Knot DNS Resolver network listeners
Documentation=man:kresd(8)
Before=sockets.target
Alias=knot-resolver.socket
[Socket]
ListenStream=[::1]:53
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment