/etc/init/fcoe.conf is in fcoe-utils 1.0.9-0ubuntu4.
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 | description "fcoe daemon"
author "Chuck Short <zulcss@ubuntu.com>"
start on runlevel [2345]
stop on runlevel [!2345]
expect daemon
respawn
env FCOE_CONF=/etc/fcoe/open-fcoe.conf
pre-start script
do_modprobe() {
modprobe -q "$1" || true
}
rm -f /var/run/fcoemon.*
modprobe libfc
modprobe fcoe
end script
script
HBA=
fcoe_gethba() {
HBA=grep -v "#" $FCOE_CONF | grep "HBA=" | cut -f2 -d=`
if ! ifconfig $HBA &> /dev/null
then
HBA=
fi
}
fcoe_gethba
exec /usr/sbin/fcoeadm --create $HBA
end script
|