Make comment how to use different config file
This commit is contained in:
parent
508d643480
commit
6bf59b0f11
@ -26,7 +26,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
|
|||||||
Name: bind
|
Name: bind
|
||||||
License: MPLv2.0
|
License: MPLv2.0
|
||||||
Version: 9.11.1
|
Version: 9.11.1
|
||||||
Release: 3%{?PATCHVER:.%{PATCHVER}}%{?PREVER:.%{PREVER}}%{?dist}
|
Release: 4%{?PATCHVER:.%{PATCHVER}}%{?PREVER:.%{PREVER}}%{?dist}
|
||||||
Epoch: 32
|
Epoch: 32
|
||||||
Url: http://www.isc.org/products/BIND/
|
Url: http://www.isc.org/products/BIND/
|
||||||
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@ -1135,6 +1135,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{python3_sitelib}/isc/__pycache__/*py*
|
%{python3_sitelib}/isc/__pycache__/*py*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 14 2017 Petr Menšík <pemensik@redhat.com> - 32:9.11.1-4.P3
|
||||||
|
- Simplify change of default configuration file path
|
||||||
|
|
||||||
* Thu Jul 13 2017 Petr Menšík <pemensik@redhat.com> - 32:9.11.1-3.P3
|
* Thu Jul 13 2017 Petr Menšík <pemensik@redhat.com> - 32:9.11.1-3.P3
|
||||||
- Use mysql_config for SDB variant, build against mariadb-devel
|
- Use mysql_config for SDB variant, build against mariadb-devel
|
||||||
|
|
||||||
|
@ -12,12 +12,13 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
Environment=NAMEDCONF=/etc/named.conf
|
||||||
EnvironmentFile=-/etc/sysconfig/named
|
EnvironmentFile=-/etc/sysconfig/named
|
||||||
Environment=KRB5_KTNAME=/etc/named.keytab
|
Environment=KRB5_KTNAME=/etc/named.keytab
|
||||||
PIDFile=/var/named/chroot/run/named/named.pid
|
PIDFile=/var/named/chroot/run/named/named.pid
|
||||||
|
|
||||||
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -t /var/named/chroot -z /etc/named.conf; else echo "Checking of zone files is disabled"; fi'
|
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -t /var/named/chroot -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi'
|
||||||
ExecStart=/usr/sbin/named -u named -t /var/named/chroot $OPTIONS
|
ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} -t /var/named/chroot $OPTIONS
|
||||||
|
|
||||||
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
||||||
|
|
||||||
|
@ -8,12 +8,13 @@ After=named-setup-rndc.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
Environment=NAMEDCONF=/etc/named.conf
|
||||||
EnvironmentFile=-/etc/sysconfig/named
|
EnvironmentFile=-/etc/sysconfig/named
|
||||||
Environment=KRB5_KTNAME=/etc/named.keytab
|
Environment=KRB5_KTNAME=/etc/named.keytab
|
||||||
PIDFile=/run/named/named.pid
|
PIDFile=/run/named/named.pid
|
||||||
|
|
||||||
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z /etc/named.conf; else echo "Checking of zone files is disabled"; fi'
|
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi'
|
||||||
ExecStart=/usr/sbin/named-pkcs11 -u named $OPTIONS
|
ExecStart=/usr/sbin/named-pkcs11 -u named -c ${NAMEDCONF} $OPTIONS
|
||||||
|
|
||||||
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
||||||
|
|
||||||
|
@ -12,12 +12,13 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
Environment=NAMEDCONF=/etc/named.conf
|
||||||
EnvironmentFile=-/etc/sysconfig/named
|
EnvironmentFile=-/etc/sysconfig/named
|
||||||
Environment=KRB5_KTNAME=/etc/named.keytab
|
Environment=KRB5_KTNAME=/etc/named.keytab
|
||||||
PIDFile=/var/named/chroot_sdb/run/named/named.pid
|
PIDFile=/var/named/chroot_sdb/run/named/named.pid
|
||||||
|
|
||||||
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -t /var/named/chroot_sdb -z /etc/named.conf; else echo "Checking of zone files is disabled"; fi'
|
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -t /var/named/chroot_sdb -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi'
|
||||||
ExecStart=/usr/sbin/named-sdb -u named -t /var/named/chroot_sdb $OPTIONS
|
ExecStart=/usr/sbin/named-sdb -u named -c ${NAMEDCONF} -t /var/named/chroot_sdb $OPTIONS
|
||||||
|
|
||||||
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
||||||
|
|
||||||
|
@ -8,12 +8,13 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
Environment=NAMEDCONF=/etc/named.conf
|
||||||
EnvironmentFile=-/etc/sysconfig/named
|
EnvironmentFile=-/etc/sysconfig/named
|
||||||
Environment=KRB5_KTNAME=/etc/named.keytab
|
Environment=KRB5_KTNAME=/etc/named.keytab
|
||||||
PIDFile=/run/named/named.pid
|
PIDFile=/run/named/named.pid
|
||||||
|
|
||||||
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z /etc/named.conf; else echo "Checking of zone files is disabled"; fi'
|
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi'
|
||||||
ExecStart=/usr/sbin/named-sdb -u named $OPTIONS
|
ExecStart=/usr/sbin/named-sdb -u named -c ${NAMEDCONF} $OPTIONS
|
||||||
|
|
||||||
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
||||||
|
|
||||||
|
@ -8,12 +8,13 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
|
Environment=NAMEDCONF=/etc/named.conf
|
||||||
EnvironmentFile=-/etc/sysconfig/named
|
EnvironmentFile=-/etc/sysconfig/named
|
||||||
Environment=KRB5_KTNAME=/etc/named.keytab
|
Environment=KRB5_KTNAME=/etc/named.keytab
|
||||||
PIDFile=/run/named/named.pid
|
PIDFile=/run/named/named.pid
|
||||||
|
|
||||||
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z /etc/named.conf; else echo "Checking of zone files is disabled"; fi'
|
ExecStartPre=/bin/bash -c 'if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi'
|
||||||
ExecStart=/usr/sbin/named -u named $OPTIONS
|
ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS
|
||||||
|
|
||||||
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID'
|
||||||
|
|
||||||
|
@ -5,6 +5,11 @@
|
|||||||
# at startup. Don't add -t here, enable proper
|
# at startup. Don't add -t here, enable proper
|
||||||
# -chroot.service unit file.
|
# -chroot.service unit file.
|
||||||
#
|
#
|
||||||
|
# NAMEDCONF=/etc/named/alternate.conf
|
||||||
|
# -- Don't use -c to change configuration file.
|
||||||
|
# Extend systemd named.service instead or use this
|
||||||
|
# variable.
|
||||||
|
#
|
||||||
# DISABLE_ZONE_CHECKING -- By default, service file calls named-checkzone
|
# DISABLE_ZONE_CHECKING -- By default, service file calls named-checkzone
|
||||||
# utility for every zone to ensure all zones are
|
# utility for every zone to ensure all zones are
|
||||||
# valid before named starts. If you set this option
|
# valid before named starts. If you set this option
|
||||||
|
Loading…
Reference in New Issue
Block a user