Update sample scripts to run scstadmin

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2250 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-09-24 19:15:56 +00:00
parent 50f64cc7ca
commit 02f27457c0
3 changed files with 4 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ iscsi_scstd_start()
modprobe -q crc32c
modprobe iscsi-scst
start-stop-daemon --start --exec $DAEMON --quiet
/usr/local/sbin/scstadmin -config /etc/scst.conf
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo "succeeded."
@@ -62,7 +63,7 @@ iscsi_scstd_start()
rmmod iscsi-scst
fi
}
iscsi_scstd_stop()
{
echo -n "Stopping iSCSI-SCST target service: "

View File

@@ -53,6 +53,7 @@ start_server()
modprobe -q crc32c
modprobe iscsi-scst
/usr/local/sbin/iscsi-scstd
/usr/local/sbin/scstadmin -config /etc/scst.conf
}
stop_server()

View File

@@ -59,6 +59,7 @@ start()
modprobe iscsi-scst
daemon /usr/local/sbin/iscsi-scstd
# -d 0xFFFF
/usr/local/sbin/scstadmin -config /etc/scst.conf
RETVAL=$?
echo
return $RETVAL