mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
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:
@@ -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: "
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user