Re: /etc/rc.d/iscsictl script
BERTRAND Joël <[email protected]> Sun, 26 Jul 2026 14:46:18 +0200
| Newsgroups | gmane.os.netbsd.general |
|---|---|
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--uj5tqKsQWrtGHyNsl8yg5FYZBxeqTmAq5
Content-Type: multipart/mixed; boundary="8Q4jpKSm4Dn9rUGQoel1mCYed4ahYOvId"
--8Q4jpKSm4Dn9rUGQoel1mCYed4ahYOvId
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Thanks a lot for your answer. And for iscsictl ? I have modified my
script, but I don't think if it will run as expected.
case $1 in
start)
sleep 5
${command} add_send_target -a 192.168.12.2:3260
${command} add_send_target -a 192.168.12.3:3260
while [ `iscsictl list_targets | grep 3260 | wc -l` -ne 2 ];
do ${command} refresh_targets; sleep 1;
done
${command} login -P `iscsictl list_targets | \
awk '/192.168.12.2/ { print $1; }' | tr -d ":"`
${command} login -P `iscsictl list_targets | \
awk '/192.168.12.3/ { print $1; }' | tr -d ":"`
sleep 1
mount -o rw,log NAME=3Dbacula /opt/bacula
mount -o rw,log NAME=3Dvideo /opt/video
/etc/rc.d/mountd reload
;;
=2E..
--8Q4jpKSm4Dn9rUGQoel1mCYed4ahYOvId--
--uj5tqKsQWrtGHyNsl8yg5FYZBxeqTmAq5
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
iHUEABYKAB0WIQQj8MW8iOsC2RXEznnFW/s/mMLXCAUCamYBmgAKCRDFW/s/mMLX
CIcaAQDmaV+nlS6HK9fRt81S/bur3501JxxFe+3AUhSr16xC5AEA/SLuDv806SvH
xSUys4sQYAufnb/mXew0ufBwQzhwfg8=
=piRE
-----END PGP SIGNATURE-----
--uj5tqKsQWrtGHyNsl8yg5FYZBxeqTmAq5--