[MaraDNS list] [PATCH] Provide systemd unit files
Tomasz Torcz <[email protected]> Tue, 17 Jul 2012 13:17:01 +0200
| Newsgroups | gmane.network.dns.maradns.general |
|---|---|
| Message-ID | <[email protected]> |
--s/l3CgOIzMHHjg/5 Content-Type: multipart/mixed; boundary="2fHTh5uZTiUOsy+g" Content-Disposition: inline --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Attached patch provides systemd unit files for maradns 2.0. It was developed against maradns-Q.20120521.1. Systemd is service management system available in number of distributions, and will be core part of RHEL7. Thus, future CentOS and similar RH-clones will also use systemd. Shipping unit files upstream makes distribution work easier and reduces differences between various distribution. In case of maradns, it will also make Duende obsolete. Please apply. --=20 Tomasz Torcz Only gods can safely risk perfection, xmpp: [email protected] it's a dangerous thing for a man. -- Alia --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-add-systemd-unit-files-Fedora-15-and-later-RHEL7.patch" Content-Transfer-Encoding: quoted-printable =46rom d82391b6f2c2a3632d3a6bfea91e120d8694bbb4 Mon Sep 17 00:00:00 2001 =46rom: Tomasz Torcz <[email protected]> Date: Mon, 16 Jul 2012 16:04:59 +0200 Subject: [PATCH] add systemd unit files (Fedora 15 and later, RHEL7) --- build/install.sh | 10 ++++++++++ build/maradns-deadwood.service | 11 +++++++++++ build/maradns-zoneserver.service | 11 +++++++++++ build/maradns.service | 11 +++++++++++ 4 files changed, 43 insertions(+) create mode 100644 build/maradns-deadwood.service create mode 100644 build/maradns-zoneserver.service create mode 100644 build/maradns.service diff --git a/build/install.sh b/build/install.sh index 2e81170..fabc4f6 100755 --- a/build/install.sh +++ b/build/install.sh @@ -211,3 +211,13 @@ if [ -d $RPM_BUILD_ROOT/etc/rc.d/init.d ] ; then fi fi =20 +# copy systemd unit files if systemd is available +UNITDIR=3D$( pkg-config --variable=3Dsystemdsystemunitdir systemd ) +if [ -d "$UNITDIR" ]; then + echo Installing systemd unit files in $UNITDIR + cp $BUILDDIR/maradns.service $UNITDIR/maradns.service + cp $BUILDDIR/maradns-zoneserver.service $UNITDIR/maradns-zoneserver.servi= ce + cp $BUILDDIR/maradns-deadwood.service $UNITDIR/maradns-deadwood.service +fi + + diff --git a/build/maradns-deadwood.service b/build/maradns-deadwood.service new file mode 100644 index 0000000..db822fb --- /dev/null +++ b/build/maradns-deadwood.service @@ -0,0 +1,11 @@ +[Unit] +Description=3DMaraDNS secure Domain Name Server (DNS) recursive resolver +Documentation=3Dman:Deadwood(1) +Requires=3Dnetwork.target + +[Service] +ExecStart=3D/usr/sbin/Deadwood +Restart=3Dalways + +[Install] +WantedBy=3Dmulti-user.target diff --git a/build/maradns-zoneserver.service b/build/maradns-zoneserver.se= rvice new file mode 100644 index 0000000..12ca8f2 --- /dev/null +++ b/build/maradns-zoneserver.service @@ -0,0 +1,11 @@ +[Unit] +Description=3DMaraDNS Zoneserver handles DNS zone transfers and any TCP DN= S queries +Documentation=3Dman:zoneserver(8) +Requires=3Dnetwork.target + +[Service] +ExecStart=3D/usr/sbin/zoneserver -f /etc/mararc +Restart=3Dalways + +[Install] +WantedBy=3Dmulti-user.target diff --git a/build/maradns.service b/build/maradns.service new file mode 100644 index 0000000..8e3a1ff --- /dev/null +++ b/build/maradns.service @@ -0,0 +1,11 @@ +[Unit] +Description=3DMaraDNS secure Domain Name Server (DNS)=20 +Documentation=3Dman:maradns(8) +Requires=3Dnetwork.target + +[Service] +ExecStart=3D/usr/sbin/maradns -f /etc/mararc +Restart=3Dalways + +[Install] +WantedBy=3Dmulti-user.target --=20 1.7.10.4 --2fHTh5uZTiUOsy+g-- --s/l3CgOIzMHHjg/5--