Setting 'PrivateTmp' to False might fix your problem, it causes problems
for other services too.
E.g. the systemd-locald service.
You can look at
/etc/systemd/system/systemd-localed.service.d/override.conf for an
example.
Regards
Jorge
On 2016-09-02 21:15, Chad M Stewart wrote:
Iām trying to get Bind setup as a DNS server in an LX zone. named
refuses to start using systemctl
SunOS confabulate 5.11 joyent_20160818T234814Z i86pc i386 i86pc
"image_uuid": "07b33b7a-27a3-11e6-816f-df7d94eea009ā,
Here is the start script (I have not changed it)
# cat /usr/lib/systemd/system/named.service
[Unit]
Description=Berkeley Internet Name Domain (DNS)
Wants=nss-lookup.target
Wants=named-setup-rndc.service
Before=nss-lookup.target
After=network.target
After=named-setup-rndc.service
[Service]
Type=forking
EnvironmentFile=-/etc/sysconfig/named
Environment=KRB5_KTNAME=/etc/named.keytab
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'
ExecStart=/usr/sbin/named -u named $OPTIONS
ExecReload=/bin/sh -c '/usr/sbin/rndc reload > /dev/null 2>&1 ||
/bin/kill -HUP $MAINPID'
ExecStop=/bin/sh -c '/usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill
-TERM $MAINPID'
PrivateTmp=true
[Install]
WantedBy=multi-user.target
If I execute the ExecStartPre manually it works
# /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'
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN:
loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
zone family.lan/IN: loaded serial 2016083123
zone 0.0.10.in-addr.arpa/IN: loaded serial 2016083120
When I try to start it normally
# systemctl start named
Job for named.service failed because the control process exited with
error code. See "systemctl status named.service" and "journalctl -xe"
for details.
[root@boot01 /]# systemctl status named
ā named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled;
vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2016-09-02 19:11:59
UTC; 5s ago
Process: 98235 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
(code=exited, status=226/NAMESPACE)
I can execute ExecStart and it works. I suspect this is very specific
to LX as this same setup works fine on either bare metal or a
hypervisor environment.
Any ideas?
Thank you,
Chad
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com