* Re: automatic init.d script installation
2004-03-02 0:10 automatic init.d script installation Robert Love
@ 2004-03-02 0:22 ` Kay Sievers
2004-03-02 0:23 ` Marco d'Itri
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Kay Sievers @ 2004-03-02 0:22 UTC (permalink / raw)
To: linux-hotplug
On Mon, Mar 01, 2004 at 07:10:31PM -0500, Robert Love wrote:
> Looking at this TODO item:
Cool, I'm no longer alone :)
> - install the proper init.d script based on the distro we are
> running on.
>
> We can do this with something like:
>
> if [ -f /etc/redhat-release ]; then
> install redhat init script to redhat spot
> elif [ -f /etc/SuSE-release ]; then
> install LSB init script to suse spot
> elif [ -f ... ]; then
> ...
> fi
>
> Is that cool? Such hard coding is not really my cup of tea, but it is a
> Makefile and there is not much better way to do it. We have similar
> logic in the D-BUS configure script and Makefile.
It's cool! Here is more:
if [ -f /etc/debian_version ]; then
> If it is cool, maybe Kay can swoop in and do it for me (KIDDING, KAY!
> YOU ROCK!) ;-)
Bastard! :)
Thanks, I enjoy it.
Kay
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: automatic init.d script installation
2004-03-02 0:10 automatic init.d script installation Robert Love
2004-03-02 0:22 ` Kay Sievers
@ 2004-03-02 0:23 ` Marco d'Itri
2004-03-02 0:24 ` Robert Love
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Marco d'Itri @ 2004-03-02 0:23 UTC (permalink / raw)
To: linux-hotplug
On Mar 02, Robert Love <rml@ximian.com> wrote:
>Is that cool? Such hard coding is not really my cup of tea, but it is a
>Makefile and there is not much better way to do it. We have similar
Letting this kind of things to distributions packagers maybe?
--
ciao, |
Marco | [4843 vi8rhJ54vSmHI]
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: automatic init.d script installation
2004-03-02 0:10 automatic init.d script installation Robert Love
2004-03-02 0:22 ` Kay Sievers
2004-03-02 0:23 ` Marco d'Itri
@ 2004-03-02 0:24 ` Robert Love
2004-03-02 0:33 ` Kay Sievers
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Robert Love @ 2004-03-02 0:24 UTC (permalink / raw)
To: linux-hotplug
On Mon, 2004-03-01 at 19:22, Kay Sievers wrote:
> if [ -f /etc/debian_version ]; then
Does it use LSB init files in /etc/init.d ?
Are we even keeping the initscript? When I wrote it, it was just
because we lacked initramfs so we missed everything generated during
early boot. When we get initramfs, do we still need the initscript?
Robert Love
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: automatic init.d script installation
2004-03-02 0:10 automatic init.d script installation Robert Love
` (2 preceding siblings ...)
2004-03-02 0:24 ` Robert Love
@ 2004-03-02 0:33 ` Kay Sievers
2004-03-02 0:37 ` Marco d'Itri
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Kay Sievers @ 2004-03-02 0:33 UTC (permalink / raw)
To: linux-hotplug
On Tue, 2004-03-02 at 01:23, Marco d'Itri wrote:
> On Mar 02, Robert Love <rml@ximian.com> wrote:
>
> >Is that cool? Such hard coding is not really my cup of tea, but it is a
> >Makefile and there is not much better way to do it. We have similar
> Letting this kind of things to distributions packagers maybe?
I don't think I will use any package in the near future of udev,
so it would be nice for us, the developers, to have a working copy
in the tree.
But I'm the 19th who told so. Whats your point to be so closed?
That a few entries may be out of sync? I don't really care.
Kay
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: automatic init.d script installation
2004-03-02 0:10 automatic init.d script installation Robert Love
` (3 preceding siblings ...)
2004-03-02 0:33 ` Kay Sievers
@ 2004-03-02 0:37 ` Marco d'Itri
2004-03-02 0:38 ` Marco d'Itri
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Marco d'Itri @ 2004-03-02 0:37 UTC (permalink / raw)
To: linux-hotplug
On Mar 02, Kay Sievers <kay.sievers@vrfy.org> wrote:
>But I'm the 19th who told so. Whats your point to be so closed?
>That a few entries may be out of sync? I don't really care.
In my experience, the problem is that the official package can never be
as complete and as up to date as the distribution package (at least for
distributions which have continuously updated packages like debian).
Then it happens that somebody writes to the upstream author complaining
about the distro packaging in the package being broken or out of date,
while it will have been fixed since a long time in the distribution
package.
This is not a big deal now while there are almost-weekly udev releases,
but look at the hotplug package and compare it with the packages from
distributions.
--
ciao, |
Marco | [4844 otZUipgM/tsfk]
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: automatic init.d script installation
2004-03-02 0:10 automatic init.d script installation Robert Love
` (4 preceding siblings ...)
2004-03-02 0:37 ` Marco d'Itri
@ 2004-03-02 0:38 ` Marco d'Itri
2004-03-02 0:45 ` Richard Troth
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Marco d'Itri @ 2004-03-02 0:38 UTC (permalink / raw)
To: linux-hotplug
On Mar 02, Robert Love <rml@ximian.com> wrote:
>> if [ -f /etc/debian_version ]; then
>Does it use LSB init files in /etc/init.d ?
It could, except that it will not be a "real" debian package anymore.
>Are we even keeping the initscript? When I wrote it, it was just
>because we lacked initramfs so we missed everything generated during
>early boot. When we get initramfs, do we still need the initscript?
OK, but /when/ will we get initramfs? :-)
So far everybody has been talking about 2.7 time...
--
ciao, |
Marco | [4845 prrRV8HEy.ReE]
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: automatic init.d script installation
2004-03-02 0:10 automatic init.d script installation Robert Love
` (5 preceding siblings ...)
2004-03-02 0:38 ` Marco d'Itri
@ 2004-03-02 0:45 ` Richard Troth
2004-03-02 0:47 ` Richard Troth
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Richard Troth @ 2004-03-02 0:45 UTC (permalink / raw)
To: linux-hotplug
...
> if [ -f /etc/redhat-release ]; then
> install redhat init script to redhat spot
> elif [ -f /etc/SuSE-release ]; then
> install LSB init script to suse spot
> elif [ -f ... ]; then
> ...
> fi
>
> Is that cool? Such hard coding is not really my cup of tea, ...
Good question.
I had to throw together a shell script for our products
(the non GPL kind of stuff) to handle the various distros.
LSB helps, but we're not always there. So ... yeah ... I think
that for now we have to hard-code some of it. Yuck.
It occurs to me that
I might be able to pry that script out of corporate IP
and make it available (as if any of a bazillion others
could not come up with a similar solution). Better still
might be to add the logic it contains to the GNU config suite.
<rambling>
The evolution of the script was
that I use 'uname' to identify all platforms, where possible.
(Works even on many non-Unix legacy systems, even Windows occasionally.)
But with the distro differences, I couldn't just go with (eg)
Linux-2.4-s390
I had to go with
SuSE-7.3-i386
RedHat-7.2-s390
(You get the idea.) Really bugs me to fragment our code
along distro lines, but there are enough differences that we were
forced into it. Other examples in the above sequence would be
Solaris-5.8-sparc # for Solaris 8
AIX-5.2-powerpc
HPUX-11-hppa64
Obviously, vendor Unix don't fragment like Linux does. :-S
</rambling>
-- R;
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: automatic init.d script installation
2004-03-02 0:10 automatic init.d script installation Robert Love
` (6 preceding siblings ...)
2004-03-02 0:45 ` Richard Troth
@ 2004-03-02 0:47 ` Richard Troth
2004-03-02 0:54 ` Robert Love
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Richard Troth @ 2004-03-02 0:47 UTC (permalink / raw)
To: linux-hotplug
> Are we even keeping the initscript? When I wrote it, it was just
> because we lacked initramfs so we missed everything generated during
> early boot. When we get initramfs, do we still need the initscript?
Yes!
-- R;
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: automatic init.d script installation
2004-03-02 0:10 automatic init.d script installation Robert Love
` (7 preceding siblings ...)
2004-03-02 0:47 ` Richard Troth
@ 2004-03-02 0:54 ` Robert Love
2004-03-02 1:34 ` Greg KH
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Robert Love @ 2004-03-02 0:54 UTC (permalink / raw)
To: linux-hotplug
On Mon, 2004-03-01 at 19:47, Richard Troth wrote:
> Yes!
... why? :>
Right now, it just rebuilds udev by walking sysfs. If we do not _need_
udev to be rebuilt, then why have the initscript?
Robert Love
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: automatic init.d script installation
2004-03-02 0:10 automatic init.d script installation Robert Love
` (8 preceding siblings ...)
2004-03-02 0:54 ` Robert Love
@ 2004-03-02 1:34 ` Greg KH
2004-03-02 1:35 ` Greg KH
2004-03-02 14:58 ` Richard Troth
11 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2004-03-02 1:34 UTC (permalink / raw)
To: linux-hotplug
On Mon, Mar 01, 2004 at 07:54:02PM -0500, Robert Love wrote:
> On Mon, 2004-03-01 at 19:47, Richard Troth wrote:
>
> > Yes!
>
> ... why? :>
>
> Right now, it just rebuilds udev by walking sysfs. If we do not _need_
> udev to be rebuilt, then why have the initscript?
I agree. I don't think it's needed.
Actually I don't use it today at all anyway, I just use that start_udev
script...
Or you can use the udevstart binary I just added to the udev bk tree :)
thanks,
greg k-h
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: automatic init.d script installation
2004-03-02 0:10 automatic init.d script installation Robert Love
` (9 preceding siblings ...)
2004-03-02 1:34 ` Greg KH
@ 2004-03-02 1:35 ` Greg KH
2004-03-02 14:58 ` Richard Troth
11 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2004-03-02 1:35 UTC (permalink / raw)
To: linux-hotplug
On Tue, Mar 02, 2004 at 01:38:52AM +0100, Marco d'Itri wrote:
> On Mar 02, Robert Love <rml@ximian.com> wrote:
>
> >> if [ -f /etc/debian_version ]; then
> >Does it use LSB init files in /etc/init.d ?
> It could, except that it will not be a "real" debian package anymore.
>
> >Are we even keeping the initscript? When I wrote it, it was just
> >because we lacked initramfs so we missed everything generated during
> >early boot. When we get initramfs, do we still need the initscript?
> OK, but /when/ will we get initramfs? :-)
You have it today, 2.6 boots with it every time.
> So far everybody has been talking about 2.7 time...
True, but who knows when 2.7 will start, and then we can backport it to
2.6 :)
Actually the start of some "real" initramfs code is already in the -mm
tree, so we are not that far away...
thanks,
greg k-h
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: automatic init.d script installation
2004-03-02 0:10 automatic init.d script installation Robert Love
` (10 preceding siblings ...)
2004-03-02 1:35 ` Greg KH
@ 2004-03-02 14:58 ` Richard Troth
11 siblings, 0 replies; 13+ messages in thread
From: Richard Troth @ 2004-03-02 14:58 UTC (permalink / raw)
To: linux-hotplug
Robert Love asked if we should keep the init script.
I said:
> Yes!
He then asked:
> ... why? :>
>
> Right now, it just rebuilds udev by walking sysfs.
> If we do not _need_
> udev to be rebuilt, then why have the initscript?
And Greg added:
> I agree. I don't think it's needed.
>
> Actually I don't use it today at all anyway, I just use that start_udev
> script...
To answer,
I guess I was thinking of udev as a "startable subsystem".
I'm a bit of a purist, and my head is presently stuck in
several dozen other packages with their own init scripts,
so I'm grasping for sanity! (No heckling from the peanut gallery!)
Whatever goes into init.d (ie: a script, an executable)
should handle the commands: start, stop, restart, ... they're
listed in LSB. Don't remove the ability to issue them manually,
outside the scope of other INIT logic. I can't imagine that we
would actually *do* that (remove the manual capability),
so maybe I've misunderstood.
-- R;
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 13+ messages in thread