All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell Coker <bofh@coker.com.au>
To: linux-lvm@sistina.com, Gergely Tamas <dice@mfa.kfki.hu>
Subject: Re: [linux-lvm] '/etc/init.d/lvm' script in debian package
Date: Thu, 21 Dec 2000 08:40:47 +1100	[thread overview]
Message-ID: <0012210840470T.08762@lyta> (raw)
In-Reply-To: <Pine.LNX.4.30.0012201012130.4495-100000@falka.mfa.kfki.hu>

On Wednesday 20 December 2000 20:29, Gergely Tamas wrote:
> Hi!
>
> Some notes to the /etc/init.d/lvm script in the debian packages ...
>
> 1] --- it would be better to add '-a ! -d /proc/lvm' as shown bellow,
>        becouse in in the newer versions '/proc/lvm' is a directory
>        (but what if compiled without /proc/lvm info...)
>
> if [ ! -f /proc/lvm -a ! -d /proc/lvm ]; then
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ was: '[ ! -f /proc/lvm ]; then'
>
> 	if [ ! -f /lib/modules/`uname -r`/block/lvm.o -a ! -f /lib/modules/`uname
> -r`/block/lvm-mod.o ]; then exit 0
> 	fi
> fi

Thanks for the suggestion about checking for a directory.  But how will I 
determine what version of LVM if it's a directory?  Will there be 
/proc/lvm/version?

As for the checking for the module file.  With the way module management is 
being changed in recent kernels I'm not about to do such checking as it's too 
likely that things will get broken.

I'll just assume that if the LVM module isn't loaded then the administrator 
doesn't want it to start.

LVM isn't something that you want to be automatically loading on demand, 
either you need it or you don't.  If you need it then you will probably want 
to compile it in or put it in /etc/modules for loading on boot.

> 2] --- I still think that an init.d script should display a usage help as
>        default
>
> case "$1" in
> 	start)
>         ^^^^^^ was: 'start|"")'

Done.

-- 
http://www.coker.com.au/bonnie++/     Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/       Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/     My home page

  reply	other threads:[~2000-12-20 21:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-20  9:29 [linux-lvm] '/etc/init.d/lvm' script in debian package Gergely Tamas
2000-12-20 21:40 ` Russell Coker [this message]
2000-12-20 22:21   ` Claudio Matsuoka
2000-12-20 23:08     ` Andreas Dilger
2000-12-20 23:29       ` [linux-lvm] IOP selection scripts (was: '/etc/init.d/lvm' script in debian package) Claudio Matsuoka
2000-12-21  0:34         ` Andreas Dilger
2000-12-21 10:28           ` Claudio Matsuoka
2000-12-21 22:06             ` Andreas Dilger
2000-12-21 23:06               ` Claudio Matsuoka
2000-12-22  1:38                 ` Andreas Dilger
2000-12-22 10:13                   ` Claudio Matsuoka
2000-12-22 18:12                     ` [linux-lvm] IOP selection scripts Andreas Dilger
2000-12-21  8:37   ` [linux-lvm] '/etc/init.d/lvm' script in debian package Gergely Tamas
2000-12-21  9:04     ` Patrick Caulfield
2000-12-21  9:43       ` Gergely Tamas
2000-12-22 18:23         ` Russell Coker
2000-12-24  5:12           ` Andreas Dilger
2000-12-21  9:44     ` Claudio Matsuoka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0012210840470T.08762@lyta \
    --to=bofh@coker.com.au \
    --cc=dice@mfa.kfki.hu \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.