The object is to find out what caused it to fail, so I'd hoped to see some commands before that.
Ah, sorry, think got your intention, now. Here's the full "dump". As I'm in a hurry I just had a brief look at it (of course there are a couple if checks e.g. n != y or equivalent, but I couldn't spot anything right away)
root@Share:~# sh -x /etc/init.d/iscsitarget start
+ PID_FILE=/var/run/iscsi_trgt.pid
+ CONFIG_FILE=/etc/ietd.conf
+ DAEMON=/usr/sbin/ietd
+ PATH=/sbin:/bin:/usr/sbin:/usr/bin
+ MEM_SIZE=1048576
+ . /lib/lsb/init-functions
+ FANCYTTY=
+ [ -e /etc/lsb-base-logging.sh ]
+ . /etc/lsb-base-logging.sh
+ ISCSITARGET_ENABLE=false
+ ISCSITARGET_DEFAULTS_FILE=/etc/default/iscsitarget
+ [ -s /etc/default/iscsitarget ]
+ . /etc/default/iscsitarget
+ ISCSITARGET_ENABLE=true
+ RETVAL=0
+ [ true = true ]
+ ietd_start
+ log_daemon_msg Starting iSCSI enterprise target service
+ [ -z Starting iSCSI enterprise target service ]
+ log_use_usplash
+ [ n = y ]
+ type usplash_write
+ log_to_console log_daemon_msg Starting iSCSI enterprise target service
+ [ n != y ]
+ [ no != yes ]
+ readlink /proc/self/fd/0
+ stdin=/dev/pts/0
+ [ /dev/pts/0 != /dev/pts/0 ]
+ return 0
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ [ -t 1 ]
+ [ xxterm != ]
+ [ xxterm != xdumb ]
+ [ -x /usr/bin/tput ]
+ [ -x /usr/bin/expr ]
+ /usr/bin/tput hpa 60
+ /usr/bin/tput setaf 1
+ [ -z ]
+ FANCYTTY=1
+ true
+ /usr/bin/tput xenl
+ /usr/bin/tput cols
+ COLS=80
+ [ 80 ]
+ [ 80 -gt 6 ]
+ /usr/bin/expr 80 - 7
+ COL=73
+ printf * Starting iSCSI enterprise target service
* Starting iSCSI enterprise target service + /usr/bin/expr 80 - 1
+ /usr/bin/tput hpa 79
+ printf
+ configure_memsize
+ [ -e /proc/sys/net/core/wmem_max ]
+ echo 1048576
+ [ -e /proc/sys/net/core/rmem_max ]
+ echo 1048576
+ [ -e /proc/sys/net/core/wmem_default ]
+ echo 1048576
+ [ -e /proc/sys/net/core/rmem_default ]
+ echo 1048576
+ [ -e /proc/sys/net/ipv4/tcp_mem ]
+ echo 1048576 1048576 1048576
+ [ -e /proc/sys/net/ipv4/tcp_rmem ]
+ echo 1048576 1048576 1048576
+ [ -e /proc/sys/net/ipv4/tcp_wmem ]
+ echo 1048576 1048576 1048576
+ modprobe -q crc32c
+ RETVAL=1
+ [ 1 != 0 ]
+ log_end_msg 1
+ [ -z 1 ]
+ log_use_usplash
+ [ n = y ]
+ type usplash_write
+ log_to_console log_end_msg 1
+ [ n != y ]
+ [ no != yes ]
+ readlink /proc/self/fd/0
+ stdin=/dev/pts/0
+ [ /dev/pts/0 != /dev/pts/0 ]
+ return 0
+ [ 73 ]
+ [ -x /usr/bin/tput ]
+ printf \r
+ /usr/bin/tput hpa 73
+ [ 1 -eq 0 ]
+ printf [
[+ /usr/bin/tput setaf 1
+ printf fail
fail+ /usr/bin/tput op+ echo ]
]
+ return 1
+ exit 1