Commit Graph

32 Commits

Author SHA1 Message Date
Bart Van Assche
81fff819d6 scstadmin: Make /etc/init.d/scst status work on RHEL 6.2. Apparently RHEL 6.2 doesn't define the function rc_status in /lib/lsb/init-functions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4163 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-03-18 12:05:45 +00:00
Bart Van Assche
3da8048c71 scstadmin: Only enable /etc/init.d/scst in runlevels 3 and 5 since networking is not available in runlevels 2 or 4
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4152 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-03-04 14:16:51 +00:00
Bart Van Assche
02b431ec24 scstadmin: Revert r4023 since bug https://bugzilla.novell.com/show_bug.cgi?id=738281 has been fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4151 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-03-04 14:13:52 +00:00
Bart Van Assche
372373cf5f 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
2012-01-12 17:36:49 +00:00
Bart Van Assche
a7d2282fd0 Make "/etc/init.d/scst status" exit with code 3 instead of 0 if SCST has not been started, as required by the LSB. Fixes a bug introduced in r3805.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4047 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-02 12:08:33 +00:00
Vladislav Bolkhovitin
6d8ca195f7 openSUSE 12.1 automatically transforms commands like
"/etc/init.d/scst start" into a systemd start command. Since that doesn't
work for the SCST init script, disable systemd wrapping.

See also bug #738281 "Upgrading from openSUSE 11.4 to openSUSE 12.1 breaks third-party
LSB-compliant System V style init scripts" in the Novell bugzilla database
(https://bugzilla.novell.com/show_bug.cgi?id=738281).

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4023 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-21 03:02:13 +00:00
Bart Van Assche
c8fc2dd821 /etc/init.d/scst: clarify comments
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3996 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 13:03:51 +00:00
Bart Van Assche
3749844c5f scst initialization: Remove kernel module parameters from /etc/default/scst
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3931 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-17 17:52:29 +00:00
Bart Van Assche
706407c334 /etc/init.d/scst: Let "scst start" proceed even if the config file is missing
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3827 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-22 19:09:59 +00:00
Bart Van Assche
24fc29b9d6 Follow-up for r3816: make sure that /etc/init.d/scst restart works again
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3826 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-21 08:21:31 +00:00
Bart Van Assche
34714117d1 /etc/init.d/scst, Gentoo: do not require that /etc/scst.conf exists when starting SCST. Makes the init script behavior on Gentoo consistent with LSB-compliant distributions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3816 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-17 08:27:18 +00:00
Bart Van Assche
0042639266 /etc/init.d/scst: Port to Gentoo
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3805 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 16:13:33 +00:00
Bart Van Assche
be2a156d3d /etc/init.d/scst: Replace another instance of "echo y | scstadmin" by "scstadmin -noprompt".
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3693 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-19 19:06:02 +00:00
Bart Van Assche
a2186fddc0 /etc/init.d/scst: Use the -noprompt option of scstadmin instead of "echo y |".
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3680 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-07-18 07:46:17 +00:00
Bart Van Assche
562809a2da /etc/init.d/scst: Improved /etc/scst.conf parsing robustness for manually edited scst.conf files
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3569 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-11 15:55:49 +00:00
Bart Van Assche
aa199d8ef6 /etc/init.d/scst: Relax parsing of /etc/scst.conf. Accept sequences of blanks and tabs instead of only spaces when looking for device handler and target driver names.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3568 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-11 10:26:25 +00:00
Bart Van Assche
4ce84f3edb More /etc/init.d/scst tuning:
- Works now if the SCST modules have been compiled into the kernel (=Y) instead of being compiled as modules (=M).
- Rename DAEMONS into SCST_DAEMONS.
- Use the same name for loading and removing the iSCSI kernel module (iscsi_scst).
- Set the path after having read /lib/lsb/init-functions instead of before.
- Remove the path from the killall command.
- When parsing /etc/default/scst, handle both parameters with and without embedded spaces correctly.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3567 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-10 18:03:11 +00:00
Vladislav Bolkhovitin
7bde8810f5 Currently there are three different init scripts inside the SCST project:
scst, iscsi-scst and qla2x00t. This makes it unnecessary hard for users to
run several target drivers simultaneously. Additionally, several variants of
these init scripts exist for different distributions. This patch unifies all
these init scripts into a single init script. Additionally, some new features
have been added:
- Kernel module parameters can now be specified per kernel module in
  /etc/default/scst. An example:
 ib_srpt_parameters="thread=1 srp_max_req_size=4200"
- When using the sysfs interface, compute the kernel module list from scst.conf.
  Or, editing the SCST_MODULES variable is no longer necessary.
- When using the procfs interface, the SCST handler kernel module list is
  computed from /etc/scst.conf. The list of target driver kernel modules must
  now be configured in /etc/default/scst.

Other changes:
- scstadmin output is shown if scstadmin fails.
- Running make -C scstadmin install does no longer cause the scst script to
  be started at the next reboot - it is better to leave this as an explicit step.
- Made the error message generated if the lsb-core package has not yet been
  installed more clear.
- Use proper init script path on Slackware.
- make uninstall: run remove_initd under chroot if $(DESTDIR) is not empty.
- Fixed a bug in "make -C scstadmin uninstall": the path specified for removing
  /etc/init.d/scst was wrong.
- The command /etc/init.d/scst restart will only try to start SCST if stopping
  succeeded.
- Replaced "mkdir -m 755 -p $(DESTDIR)$(INITDIR)" by
  "install -d $(DESTDIR)$(INITDIR)" because of uniformity.

These changes have been tested on Ubuntu 11.04, Fedora 15, CentOS 5.6,
Scientific Linux 6.0, openSUSE 11.4, SLES11 SP1 and Slackware 13.37.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3564 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-10 02:38:04 +00:00
Bart Van Assche
5fe037e5b9 Updated my e-mail address in copyright statements and README files.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3175 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-21 18:48:14 +00:00
Mark Buechler
b12f90f23f - Fix init script for CentOS/RedHat. Patch by fzago@systemfabricworks.com
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2978 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-08 14:57:48 +00:00
Mark Buechler
6ce1ecf9d8 - Warn on missing /etc/scst.conf.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2736 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-17 14:56:37 +00:00
Mark Buechler
5e5478ecae - Permit init scripts to run and load modules even if /etc/scst.conf doesn't yet exist.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2735 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-17 14:51:57 +00:00
Mark Buechler
1c9d0cf043 - Fix init script for qla2x00t
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2259 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 20:27:46 +00:00
Mark Buechler
f519990ab2 - Add README.iscsi in init.d.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2243 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 17:11:31 +00:00
Vladislav Bolkhovitin
0c0a734968 A set of startup scripts for Gentoo customized by Scott R. Bowe <scottb@sentania.net>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1521 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-25 14:14:23 +00:00
Mark Buechler
b0a902a6a1 Add lsb support for init.d scripts. Patch from Bart Van Assche.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@669 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-02-11 16:09:45 +00:00
Vladislav Bolkhovitin
5026d92ad0 Access control docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@624 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2008-12-26 17:40:30 +00:00
Vladislav Bolkhovitin
2de18c7c7a - Now iSCSI target service load considered successful if at least one listen socket was successfully open and setup
- Minor race on BLOCKIO requests submittion was fixed
 - Other minor fixes and cleanups


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@220 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-11-12 11:21:54 +00:00
Vladislav Bolkhovitin
fd6744d33e scst_fileio renamed to scst_vdisk
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@172 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-27 10:49:04 +00:00
Vladislav Bolkhovitin
1d694781ee scsi_tgt renamed to scst
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@169 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2007-08-24 16:40:56 +00:00
Mark Buechler
58a08724ca Increase sleep for init script between stop/start
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@34 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-14 18:44:47 +00:00
Vladislav Bolkhovitin
5410bf4f3b The initial commit of 0.9.5-pre1 version
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@33 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2006-11-14 12:56:57 +00:00