All of lore.kernel.org
 help / color / mirror / Atom feed
* udev - kill udevd on install
@ 2004-02-28  3:33 Kay Sievers
  2004-02-28  6:50 ` Greg KH
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kay Sievers @ 2004-02-28  3:33 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 133 bytes --]

We want to kill udevd after installing a new version, cause the event
contains a magic with the version number of udev.

thanks,
Kay

[-- Attachment #2: 02-kill-udevd.patch --]
[-- Type: text/plain, Size: 824 bytes --]

===== Makefile 1.122 vs edited =====
--- 1.122/Makefile	Sat Feb 28 02:59:43 2004
+++ edited/Makefile	Sat Feb 28 04:25:36 2004
@@ -373,10 +373,12 @@
 	$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
 	$(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
 	$(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
-	- ln -f -s ./udevd.8 $(DESTDIR)$(mandir)/man8/udevsend.8
-	- rm -f $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
-	- rm -f $(DESTDIR)$(udevdir)/.udev.tdb
+	- ln -f -s udevd.8 $(DESTDIR)$(mandir)/man8/udevsend.8
 	- ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
+ifndef DESTDIR
+	- killall udevd
+	- rm -f $(udevdir)/.udev.tdb
+endif
 	@extras="$(EXTRAS)" ; for target in $$extras ; do \
 		echo $$target ; \
 		$(MAKE) prefix=$(prefix) LD="$(LD)" SYSFS="$(SYSFS)" \

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: udev - kill udevd on install
  2004-02-28  3:33 udev - kill udevd on install Kay Sievers
@ 2004-02-28  6:50 ` Greg KH
  2004-02-28 12:48 ` Kay Sievers
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2004-02-28  6:50 UTC (permalink / raw)
  To: linux-hotplug

On Sat, Feb 28, 2004 at 04:33:39AM +0100, Kay Sievers wrote:
> We want to kill udevd after installing a new version, cause the event
> contains a magic with the version number of udev.
> 
> thanks,
> Kay

> === Makefile 1.122 vs edited ==> --- 1.122/Makefile	Sat Feb 28 02:59:43 2004
> +++ edited/Makefile	Sat Feb 28 04:25:36 2004
> @@ -373,10 +373,12 @@
>  	$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
>  	$(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
>  	$(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
> -	- ln -f -s ./udevd.8 $(DESTDIR)$(mandir)/man8/udevsend.8
> -	- rm -f $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug

Why take away this line?  It's needed if the symlink is set up "wrong"
(like pointing to udev instead of udevsend like old systems would
have...)

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] 5+ messages in thread

* Re: udev - kill udevd on install
  2004-02-28  3:33 udev - kill udevd on install Kay Sievers
  2004-02-28  6:50 ` Greg KH
@ 2004-02-28 12:48 ` Kay Sievers
  2004-03-01 22:26 ` Greg KH
  2004-03-18 14:40 ` Harald Hoyer
  3 siblings, 0 replies; 5+ messages in thread
From: Kay Sievers @ 2004-02-28 12:48 UTC (permalink / raw)
  To: linux-hotplug

On Sat, 2004-02-28 at 07:50, Greg KH wrote:
> On Sat, Feb 28, 2004 at 04:33:39AM +0100, Kay Sievers wrote:
> > We want to kill udevd after installing a new version, cause the event
> > contains a magic with the version number of udev.
> > 
> > thanks,
> > Kay
> 
> > === Makefile 1.122 vs edited ==> > --- 1.122/Makefile	Sat Feb 28 02:59:43 2004
> > +++ edited/Makefile	Sat Feb 28 04:25:36 2004
> > @@ -373,10 +373,12 @@
> >  	$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
> >  	$(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
> >  	$(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
> > -	- ln -f -s ./udevd.8 $(DESTDIR)$(mandir)/man8/udevsend.8
> > -	- rm -f $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
> 
> Why take away this line?  It's needed if the symlink is set up "wrong"
> (like pointing to udev instead of udevsend like old systems would
> have...)

..., cause it's not needed. The "-f" of the following line should be
enough to replace any already existing link:

- ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug


thanks,
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] 5+ messages in thread

* Re: udev - kill udevd on install
  2004-02-28  3:33 udev - kill udevd on install Kay Sievers
  2004-02-28  6:50 ` Greg KH
  2004-02-28 12:48 ` Kay Sievers
@ 2004-03-01 22:26 ` Greg KH
  2004-03-18 14:40 ` Harald Hoyer
  3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2004-03-01 22:26 UTC (permalink / raw)
  To: linux-hotplug

On Sat, Feb 28, 2004 at 01:48:57PM +0100, Kay Sievers wrote:
> On Sat, 2004-02-28 at 07:50, Greg KH wrote:
> > On Sat, Feb 28, 2004 at 04:33:39AM +0100, Kay Sievers wrote:
> > > We want to kill udevd after installing a new version, cause the event
> > > contains a magic with the version number of udev.
> > > 
> > > thanks,
> > > Kay
> > 
> > > === Makefile 1.122 vs edited ==> > > --- 1.122/Makefile	Sat Feb 28 02:59:43 2004
> > > +++ edited/Makefile	Sat Feb 28 04:25:36 2004
> > > @@ -373,10 +373,12 @@
> > >  	$(INSTALL_DATA) -D udev.8 $(DESTDIR)$(mandir)/man8/udev.8
> > >  	$(INSTALL_DATA) -D udevinfo.8 $(DESTDIR)$(mandir)/man8/udevinfo.8
> > >  	$(INSTALL_DATA) -D udevd.8 $(DESTDIR)$(mandir)/man8/udevd.8
> > > -	- ln -f -s ./udevd.8 $(DESTDIR)$(mandir)/man8/udevsend.8
> > > -	- rm -f $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug
> > 
> > Why take away this line?  It's needed if the symlink is set up "wrong"
> > (like pointing to udev instead of udevsend like old systems would
> > have...)
> 
> ..., cause it's not needed. The "-f" of the following line should be
> enough to replace any already existing link:
> 
> - ln -f -s $(sbindir)/$(SENDER) $(DESTDIR)$(hotplugdir)/$(ROOT).hotplug

Hm, ok, I can't remember why I didn't realize that a while ago... 

Oh well, applied, 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] 5+ messages in thread

* Re: udev - kill udevd on install
  2004-02-28  3:33 udev - kill udevd on install Kay Sievers
                   ` (2 preceding siblings ...)
  2004-03-01 22:26 ` Greg KH
@ 2004-03-18 14:40 ` Harald Hoyer
  3 siblings, 0 replies; 5+ messages in thread
From: Harald Hoyer @ 2004-03-18 14:40 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 276 bytes --]

Okok, remove my last rant from your memory :) thx!

Kay Sievers wrote:
> We want to kill udevd after installing a new version, cause the event
> contains a magic with the version number of udev.

> +ifndef DESTDIR
> +	- killall udevd
> +	- rm -f $(udevdir)/.udev.tdb
> +endif

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-03-18 14:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-28  3:33 udev - kill udevd on install Kay Sievers
2004-02-28  6:50 ` Greg KH
2004-02-28 12:48 ` Kay Sievers
2004-03-01 22:26 ` Greg KH
2004-03-18 14:40 ` Harald Hoyer

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.