]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
systemd: remove kresd.service meta-service
authorTomas Krizek <tomas.krizek@nic.cz>
Fri, 9 Feb 2018 11:03:07 +0000 (12:03 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Fri, 16 Feb 2018 09:40:42 +0000 (10:40 +0100)
The kresd.service meta-service could be confusing for users and provides
no extra functionality. The system-kresd.slice can be used to restart or
stop all running instances.

Distributions shipping with /etc/init.d/kresd should symlink the
kresd.service to /dev/null to prevent systemd-sysv-generator from
creating this service.

doc/kresd.systemd.7
systemd/kresd.service [deleted file]
systemd/kresd@.service

index d231c32ca2c54bf04f54462c2421a98226cc51cd..541ea4ddb26a638a7cb734cdfdab05f7b5f3b964 100644 (file)
@@ -18,7 +18,6 @@ kresd.socket
 kresd-tls.socket
 kresd-control@.socket
 system-kresd.slice
-kresd.service
 .fi
 
 .SH "DESCRIPTION"
@@ -36,10 +35,8 @@ single, independent kresd process.
 The systemd-managed \fBkresd\fR service set is grouped in the
 \fIsystem-kresd.slice\fR slice.  The slice includes one or more
 running daemons (instances of \fIkresd@.service\fR), public listening
-sockets (the same listening sockets are shared by all daemons), a
-dedicated control socket for each running daemon, and one meta-service
-(\fIkresd.service\fR) which can be used to stop or restart all the
-daemons.
+sockets (the same listening sockets are shared by all daemons) and a
+dedicated control socket for each running daemon.
 
 Each instance of \fIkresd@.service\fR has three systemd sockets (see
 \fBsystemd.socket(5)\fR) associated with it:
diff --git a/systemd/kresd.service b/systemd/kresd.service
deleted file mode 100644 (file)
index 75cf4df..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-[Unit]
-Description=Knot DNS Resolver daemon (meta-service, see "systemctl status 'kresd@*.service'")
-Documentation=man:kresd(8)
-Documentation=man:kresd.systemd(7)
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-ExecStart=/bin/true
-ExecReload=/bin/true
-Slice=system-kresd.slice
-
-[Install]
-WantedBy=multi-user.target
index 3995490a41302f5fd9b66fdbc9defd593828f299..acfa80bd63a72ed755591ebe494441e3551b9e06 100644 (file)
@@ -1,7 +1,6 @@
 [Unit]
 Description=Knot DNS Resolver daemon
 Documentation=man:kresd(8)
-PartOf=kresd.service
 
 [Service]
 Type=notify