ietd 'config' required argument not used by init script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iscsitarget (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
This is related to onerirc:
lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
ubuntu@
iscsitarget:
Installed: 1.4.20.2-5ubuntu1
Candidate: 1.4.20.2-5ubuntu1
Version table:
*** 1.4.20.2-5ubuntu1 0
500 http://
100 /var/lib/
I try to make a simple iscsi target but fail to do so with the following steps:
sudo apt-get install iscsitarget
Change /etc/default/
sudo apt-get install iscsitarget-dkms
sudo /etc/init.
sudo touch /etc/ietd.conf
Add a the following in /etc/ietd.conf:
Target iqn.2012-
Lun 0
Path=/dev/sdb
Type=blockio
Alias sanalias
sudo /etc/init.
I experience no error message, but /proc/net/
I then look at /etc/init.
sudo modprobe -q crc32c
sudo modprobe iscsi_trgt
sudo ietd -f -d 7
Still nothing in /proc/net/
However, it works if i launched the daemon with the -c option:
sudo ietd -f -d 7 -c /etc/ietd.conf
According to man (8) ietd:
-c filename, --config=filename
However, i m afraid there is no actual default set in the code.
Excerpt from ietd.c :
{"config", required_argument, 0, 'c'},
Looks to me the man page should be changed not to mention any default config option and the init script should start the daemon with the -c /etc/ietd.conf option.
Changed in iscsitarget (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |