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:
Bart Van Assche
2012-01-12 17:36:49 +00:00
parent 817f0a37fb
commit 372373cf5f
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -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"
+5 -1
View File
@@ -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