/etc/init/isc-dhcp-relay6.conf is in isc-dhcp-relay 4.1.ESV-R4-0ubuntu5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | description "ISC DHCP IPv6 relay"
author "Stéphane Graber <stgraber@ubuntu.com>"
start on runlevel [2345]
stop on runlevel [!2345]
pre-start script
if [ ! -f /etc/default/isc-dhcp-relay6 ]; then
echo "/etc/default/isc-dhcp-relay6 does not exist! - Aborting..."
stop
exit 0
fi
. /etc/default/isc-dhcp-relay6
if [ -z "$LOWER_INTERFACES" ] || [ -z "$UPPER_INTERFACES" ]; then
echo "No interface defined in /etc/default/isc-dhcp-relay6! - Aborting..."
stop
exit 0
fi
end script
respawn
script
. /etc/default/isc-dhcp-relay6
# Build command line for interfaces (will be passed to dhrelay below.)
IFCMD=""
if test "$LOWER_INTERFACES" != ""; then
for I in $LOWER_INTERFACES; do
IFCMD=${IFCMD}"-l "${I}" "
done
fi
if test "$UPPER_INTERFACES" != ""; then
for I in $UPPER_INTERFACES; do
IFCMD=${IFCMD}"-u "${I}" "
done
fi
exec /usr/sbin/dhcrelay -d -q -6 $OPTIONS $IFCMD
end script
|