summaryrefslogtreecommitdiff
path: root/net-dns/knot/files
diff options
context:
space:
mode:
Diffstat (limited to 'net-dns/knot/files')
-rw-r--r--net-dns/knot/files/knot-1.service17
-rw-r--r--net-dns/knot/files/knot.init41
2 files changed, 0 insertions, 58 deletions
diff --git a/net-dns/knot/files/knot-1.service b/net-dns/knot/files/knot-1.service
deleted file mode 100644
index 14a34a2b211f..000000000000
--- a/net-dns/knot/files/knot-1.service
+++ /dev/null
@@ -1,17 +0,0 @@
-[Unit]
-Description=Knot high-performance DNS Server
-After=network.target
-
-[Service]
-ExecStart=/usr/sbin/knotd
-ExecReload=/usr/sbin/knotc reload
-ExecStop=/usr/sbin/knotc stop
-PrivateTmp=true
-User=knot
-Group=knot
-RuntimeDirectory=knot
-RuntimeDirectoryMode=750
-AmbientCapabilities=CAP_NET_BIND_SERVICE
-
-[Install]
-WantedBy=multi-user.target
diff --git a/net-dns/knot/files/knot.init b/net-dns/knot/files/knot.init
deleted file mode 100644
index 8dc460c31cd4..000000000000
--- a/net-dns/knot/files/knot.init
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-command=/usr/sbin/knotd
-command_args="-d"
-pidfile=/var/run/knot/knot.pid
-required_files=/etc/knot/knot.conf
-extra_started_commands="reload"
-description_reload="Reload configuration and changed zones."
-
-depend() {
- need net
-}
-
-start() {
- checkpath -d -m 0750 -o knot:knot /var/run/knot/ /var/lib/knot/
-
- ebegin "Starting knot"
- start-stop-daemon --start \
- --pidfile $pidfile --exec $command -- $command_args
- eend $?
-}
-
-stop() {
- ebegin "Stoping knot"
- /usr/sbin/knotc stop >/dev/null 2>&1
- # In case remote control is not working
- if [ "$?" != 0 ]; then
- if [ -f $pidfile ]; then
- start-stop-daemon --stop --pidfile $pidfile
- fi
- fi
- ewend $?
-}
-
-reload() {
- ebegin "Reloading knot"
- /usr/sbin/knotc reload >/dev/null
- eend $?
-}