https://bugs.koozali.org/show_bug.cgi?id=12260

            Bug ID: 12260
           Summary: ** Ignoring requests on br0.  If this is not what
    Classification: Contribs
           Product: SME Contribs
           Version: 10.0
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-bridge-interface
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

# systemctl cat dhcpd
# /usr/lib/systemd/system/dhcpd.service
[Unit]
Description=DHCPv4 Server Daemon
Documentation=man:dhcpd(8) man:dhcpd.conf(5)
Wants=network-online.target
After=network-online.target
After=time-sync.target

[Service]
Type=notify
ExecStart=/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd
--no-pid

[Install]
WantedBy=multi-user.target

# /usr/lib/systemd/system/dhcpd.service.d/50koozali.conf
#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
# 
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------

[Service]
Type=notify
ExecStartPre=/sbin/e-smith/service-status dhcpd
ExecStartPre=/sbin/e-smith/expand-template /etc/dhcpd.conf
ExecStartPre=/bin/touch /var/lib/dhcpd/dhcpd.leases
#first empty one is to delete original one, as ExecStart allow multiple entries
ExecStart=
ExecStart=/usr/bin/sh -c 'exec /usr/sbin/dhcpd -f -cf /etc/dhcpd.conf -lf
/var/lib/dhcpd/dhcpd.leases -user dhcpd -group dhcpd --no-pid br0
>>/var/log/dhcpd/current 2>>/var/log/dhcpd/current'
#for systemd >=240
#StandardOutput=append:/var/log/dhcpd/current
#StandardError=inherit


[Service]
# added for bridge interface
ExecStart=
ExecStart=/usr/bin/sh -c 'exec /usr/sbin/dhcpd -f -cf /etc/dhcpd.conf -lf
/var/lib/dhcpd/dhcpd.leases -user dhcpd -group dhcpd --no-pid br0 br0
>>/var/log/dhcpd/current 2>>/var/log/dhcpd/current'

# in case bridge is not yet started, we want to retry..
Restart=always
RestartSec=1
[Install]
WantedBy=sme-server.target



issue is seen in tmeplate fragment
/etc/e-smith/templates/usr/lib/systemd/system/dhcpd.service.d/50koozali.conf/41service


...
# extra code if we want to hide the ethernet interface, howecer with only a
little noise in dhcp log, we can keep the two intefaces
$interface=( "$interface"  ne "$bridgeif" && defined $bridgeif ) ? "$interface
$bridgeif" : $interface;
...
ExecStart=
ExecStart=/usr/bin/sh -c 'exec /usr/sbin/dhcpd -f -cf /etc/dhcpd.conf -lf
/var/lib/dhcpd/dhcpd.leases -user dhcpd -group dhcpd --no-pid {$interface}
{$bridgeif} >>/var/log/dhcpd/current 2>>/var/log/dhcpd/current'



there is two occurence of adding the bridge

shoudl remove {$bridgeif} on the ExecStart line

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to