#741530 Multiple dhcp instances

Package:
isc-dhcp-relay
Source:
isc-dhcp
Description:
ISC DHCP relay daemon
Submitter:
Dominique Fournier
Date:
2026-08-05 17:33:54 UTC
Severity:
wishlist
Tags:
#741530#5
Date:
2014-03-13 14:04:39 UTC
From:
To:
Hi

I need to have multiple instances of dhcp-relay (each VLAN on my
firewall can have a different instance, with a dedicated DHCP server).
I adapt the launch script to do that :

===== START OF /etc/init.d/isc-dhcp-relay ====
#!/bin/sh
#
#

### BEGIN INIT INFO
# Provides:          isc-dhcp-relay
# Required-Start:    $remote_fs $network
# Required-Stop:     $remote_fs $network
# Should-Start:      $local_fs
# Should-Stop:       $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: DHCP relay
# Description:       Dynamic Host Configuration Protocol Relay
### END INIT INFO

# It is not safe to start if we don't have a default configuration...
if [ ! -f /etc/default/isc-dhcp-relay ]; then
         echo "/etc/default/isc-dhcp-relay does not exist! - Aborting..."
         echo "Run 'dpkg-reconfigure isc-dhcp-relay' to fix the problem."
         exit 1
fi

case "$1" in
         start)
                 for file in `ls /etc/default/isc-dhcp-relay*`; do
                         SERVERS=""
                         INTERFACES=""
                         OPTIONS=""
                         . $file
                         file=`basename $file`
                         echo $file
                         DHCRELAYPID=/var/run/dhcrelay-$file.pid
                         OPTIONS="$OPTIONS -pf $DHCRELAYPID"
                         # Build command line for interfaces (will be
passed to dhrelay below.)
                         IFCMD=""
                         if test "$INTERFACES" != ""; then
                                 for I in $INTERFACES; do
                                         IFCMD=${IFCMD}"-i "${I}" "
                                 done
                         fi
                         start-stop-daemon --start --quiet --pidfile
$DHCRELAYPID \
                                 --exec /usr/sbin/dhcrelay -- -q 
$OPTIONS $IFCMD $SERVERS
                         done
                 ;;
         stop)
                 for file in `ls /etc/default/isc-dhcp-relay*`; do
                         file=`basename $file`
                         echo $file
                         DHCRELAYPID=/var/run/dhcrelay-$file.pid
                                 start-stop-daemon --stop --quiet
--pidfile $DHCRELAYPID
                 done
                 ;;
         restart | force-reload)
                 $0 stop
                 sleep 2
                 $0 start
                 ;;
         *)
                 echo "Usage: /etc/init.d/isc-dhcp-relay
{start|stop|restart|force-reload}"
                 exit 1
esac

exit 0
======== END OF FILE =======

You can create multiple /etc/default/isc-dhcp-relay files with different
extensions.

Thanks a lot !

Dom

#741530#14
Date:
2026-08-05 17:31:09 UTC
From:
To:
Dear submitter,

as the package isc-dhcp has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1143544

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)