All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] correct xend initscript dependency in LSB part
@ 2010-07-23 12:21 Olaf Hering
  2010-07-30 14:01 ` Conny Seidel
  0 siblings, 1 reply; 7+ messages in thread
From: Olaf Hering @ 2010-07-23 12:21 UTC (permalink / raw)
  To: xen-devel


Add missing dependencies to runlevel script
xend requires at least xenstored

Signed-off-by: Olaf Hering <olaf@aepfle.de>

--- xen-unstable.hg-4.1.21836.orig/tools/hotplug/Linux/init.d/xend
+++ xen-unstable.hg-4.1.21836/tools/hotplug/Linux/init.d/xend
@@ -8,9 +8,9 @@
 # description: Starts and stops the Xen control daemon.
 ### BEGIN INIT INFO
 # Provides:          xend
-# Required-Start:    $syslog $remote_fs
+# Required-Start:    $syslog $remote_fs xenstored
 # Should-Start:
-# Required-Stop:     $syslog $remote_fs
+# Required-Stop:     $syslog $remote_fs xenstored
 # Should-Stop:
 # Default-Start:     3 4 5
 # Default-Stop:      0 1 2 6

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

* Re: [PATCH] correct xend initscript dependency in LSB part
  2010-07-23 12:21 [PATCH] correct xend initscript dependency in LSB part Olaf Hering
@ 2010-07-30 14:01 ` Conny Seidel
  2010-07-30 14:11   ` Ian Jackson
  2010-07-30 15:28   ` Olaf Hering
  0 siblings, 2 replies; 7+ messages in thread
From: Conny Seidel @ 2010-07-30 14:01 UTC (permalink / raw)
  To: Olaf Hering; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1251 bytes --]

Hi,

On Fri, 23 Jul 2010 08:21:20 -0400
Olaf Hering <olaf@aepfle.de> wrote:

>Add missing dependencies to runlevel script
>xend requires at least xenstored

This change only makes sense, if there is a /etc/init.d/xenstored
init-script, which I wasn't able to find in the sources.

It would be useful to change this to xencommons, which is mentioned when
running the xend-script manual.

 # /etc/init.d/xend start
 xencommons should be started first.
 # /etc/init.d/xencommons start
 Starting xenstored...
 Setting domain 0 name...
 Starting xenconsoled...
 # /etc/init.d/xend start
 #

regards,
Conny Seidel

##
##################################################################
# Email : conny.seidel@amd.com            GnuPG-Key : 0xA6AB055D #
# Fingerprint: 17C4 5DB2 7C4C C1C7 1452 8148 F139 7C09 A6AB 055D #
##################################################################
# Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach      #
# General Managers: Alberto Bozzo, Andrew Bowd                   #
# Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen #
#               HRB Nr. 43632                                    #
##################################################################

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

* Re: [PATCH] correct xend initscript dependency in LSB part
  2010-07-30 14:01 ` Conny Seidel
@ 2010-07-30 14:11   ` Ian Jackson
  2010-07-30 15:38     ` Conny Seidel
  2010-07-30 15:28   ` Olaf Hering
  1 sibling, 1 reply; 7+ messages in thread
From: Ian Jackson @ 2010-07-30 14:11 UTC (permalink / raw)
  To: Conny Seidel; +Cc: Olaf Hering, xen-devel

Conny Seidel writes ("Re: [Xen-devel] [PATCH] correct xend initscript dependency in LSB part"):
> This change only makes sense, if there is a /etc/init.d/xenstored
> init-script, which I wasn't able to find in the sources.

As I understand it, Required-Start names services which are listed in
the Provides of another init script, not the other script name directly.
Is that not true ?  Perhaps you'd like to give chapter and verse from
the LSB spec.

Ian.

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

* Re: [PATCH] correct xend initscript dependency in LSB part
  2010-07-30 14:01 ` Conny Seidel
  2010-07-30 14:11   ` Ian Jackson
@ 2010-07-30 15:28   ` Olaf Hering
  1 sibling, 0 replies; 7+ messages in thread
From: Olaf Hering @ 2010-07-30 15:28 UTC (permalink / raw)
  To: Conny Seidel; +Cc: xen-devel

On Fri, Jul 30, Conny Seidel wrote:

> Hi,
> 
> On Fri, 23 Jul 2010 08:21:20 -0400
> Olaf Hering <olaf@aepfle.de> wrote:
> 
> >Add missing dependencies to runlevel script
> >xend requires at least xenstored
> 
> This change only makes sense, if there is a /etc/init.d/xenstored
> init-script, which I wasn't able to find in the sources.

The Required/Should-Start lines reference Provides lines in other
runlevel scripts, so that tools which actually create the runlevel links
and their numbers can get the ordering right.

Do you see any issues with my change?

Olaf

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

* Re: [PATCH] correct xend initscript dependency in LSB part
  2010-07-30 15:38     ` Conny Seidel
@ 2010-07-30 15:33       ` Olaf Hering
  2010-07-30 15:43       ` Ian Jackson
  1 sibling, 0 replies; 7+ messages in thread
From: Olaf Hering @ 2010-07-30 15:33 UTC (permalink / raw)
  To: Conny Seidel; +Cc: xen-devel, Ian Jackson

On Fri, Jul 30, Conny Seidel wrote:

> On Fri, 30 Jul 2010 10:11:01 -0400
> Ian Jackson <Ian.Jackson@eu.citrix.com> wrote:
> 
> >As I understand it, Required-Start names services which are listed in
> >the Provides of another init script, not the other script name directly.
> >Is that not true ?  Perhaps you'd like to give chapter and verse from
> >the LSB spec.
> 
> >Ian.
> 
> Ouch, you are right on the LSB conformity. Sorry my bad.
> 
> But if I get an error message like this:
>  # chkconfig xend on
>  insserv: Service xenstored has to be enabled for service xend
>  insserv: exiting now!
>  /sbin/insserv failed, exit code 1
> 
> I would assume that I need to start /etc/init.d/xenstored.

insserv does not automatically enable all dependencies.
An 'insserv xencommons' is required first.

Olaf

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

* Re: [PATCH] correct xend initscript dependency in LSB part
  2010-07-30 14:11   ` Ian Jackson
@ 2010-07-30 15:38     ` Conny Seidel
  2010-07-30 15:33       ` Olaf Hering
  2010-07-30 15:43       ` Ian Jackson
  0 siblings, 2 replies; 7+ messages in thread
From: Conny Seidel @ 2010-07-30 15:38 UTC (permalink / raw)
  To: Ian Jackson; +Cc: Olaf Hering, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1273 bytes --]

On Fri, 30 Jul 2010 10:11:01 -0400
Ian Jackson <Ian.Jackson@eu.citrix.com> wrote:

>As I understand it, Required-Start names services which are listed in
>the Provides of another init script, not the other script name directly.
>Is that not true ?  Perhaps you'd like to give chapter and verse from
>the LSB spec.

>Ian.

Ouch, you are right on the LSB conformity. Sorry my bad.

But if I get an error message like this:
 # chkconfig xend on
 insserv: Service xenstored has to be enabled for service xend
 insserv: exiting now!
 /sbin/insserv failed, exit code 1

I would assume that I need to start /etc/init.d/xenstored.



Conny

##
##################################################################
# Email : conny.seidel@amd.com            GnuPG-Key : 0xA6AB055D #
# Fingerprint: 17C4 5DB2 7C4C C1C7 1452 8148 F139 7C09 A6AB 055D #
##################################################################
# Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach      #
# General Managers: Alberto Bozzo, Andrew Bowd                   #
# Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen #
#               HRB Nr. 43632                                    #
##################################################################

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

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

* Re: [PATCH] correct xend initscript dependency in LSB part
  2010-07-30 15:38     ` Conny Seidel
  2010-07-30 15:33       ` Olaf Hering
@ 2010-07-30 15:43       ` Ian Jackson
  1 sibling, 0 replies; 7+ messages in thread
From: Ian Jackson @ 2010-07-30 15:43 UTC (permalink / raw)
  To: Conny Seidel; +Cc: Olaf Hering, xen-devel

Conny Seidel writes ("Re: [Xen-devel] [PATCH] correct xend initscript dependency in LSB part"):
> Ouch, you are right on the LSB conformity. Sorry my bad.
> 
> But if I get an error message like this:
>  # chkconfig xend on
>  insserv: Service xenstored has to be enabled for service xend
>  insserv: exiting now!
>  /sbin/insserv failed, exit code 1
> 
> I would assume that I need to start /etc/init.d/xenstored.

I don't see what we can do about this.  The xencommons script does
more than xenstored - hence the name.  We can't change the Requires to
refer to xencommons because it won't work.

I think you need to take the unhelpfulness of the error message up
with the maintainers of insserv.

Ian.

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

end of thread, other threads:[~2010-07-30 15:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-23 12:21 [PATCH] correct xend initscript dependency in LSB part Olaf Hering
2010-07-30 14:01 ` Conny Seidel
2010-07-30 14:11   ` Ian Jackson
2010-07-30 15:38     ` Conny Seidel
2010-07-30 15:33       ` Olaf Hering
2010-07-30 15:43       ` Ian Jackson
2010-07-30 15:28   ` Olaf Hering

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.