mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 20:56:24 +00:00
scstadmin: Allow iscsi-scstd command-line options to be specified in /etc/default/scst
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4066 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
# iscsi-scstd command-line options. See also man iscsi-scstd.
|
||||
# ISCSID_OPTIONS="-u0 -g0 -p3260"
|
||||
|
||||
# When using the procfs interface, specify all SCST target drivers in
|
||||
# SCST_TARGET_MODULES. An example:
|
||||
# SCST_TARGET_MODULES="scst_local iscsi_scst ib_srpt"
|
||||
|
||||
@@ -222,7 +222,11 @@ start_scst() {
|
||||
done
|
||||
|
||||
for d in $SCST_DAEMONS; do
|
||||
if ! start_daemon $d; then
|
||||
options=""
|
||||
if [ "$(basename "$d")" = "iscsi-scstd" ]; then
|
||||
options="${ISCSID_OPTIONS}"
|
||||
fi
|
||||
if ! start_daemon $d $options; then
|
||||
echo "Starting $d failed"
|
||||
unload_scst
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user