Bug 522094 - iscsi isn't lsb compliant
Summary: iscsi isn't lsb compliant
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: iscsi-initiator-utils
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Mike Christie
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: InitScriptsProject
TreeView+ depends on / blocked
 
Reported: 2009-09-09 13:21 UTC by michal novacek
Modified: 2012-06-26 16:09 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-09-09 14:03:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description michal novacek 2009-09-09 13:21:55 UTC
Description of problem:
/etc/init.d/iscsi script doesn't comply with lsb in "status" function. 

It can never return 1 because it doesn't do checks for /var/lock/iscsi.pid

How reproducible: always

Steps to Reproduce:
1. /etc/init.d/iscsi stop
2. touch /var/run/iscsi.pid
3. /etc/init.d/iscsi status
  
Actual results: return value is 2

Expected results: return value is 1

Additional info:
This should be fairly easy to do as there already is check to see whether the
program is dead and it should be sufficient to add check for /var/run and
/var/lock files and return the correct value accordingly.

Comment 1 Hans de Goede 2009-09-09 14:03:59 UTC
That is because the iscsi script does not has anything to do with a daemon. There is iscsid which has a separate iscsid script. The iscsi script is for logging into know iscsi targets (targets set to autostart in the /var/lib/iscsi database).

What you should do is:
/etc/init.d/iscsid stop
touch /var/run/iscsid.pid
/etc/init.d/iscsid status

And then things work as they should. Since the iscsi script does not start
any daemon, and since their thus is no pid file, this naturally does not work
for the iscsi service.


Note You need to log in before you can comment on or make changes to this bug.