They do unless they work in the legacy mode 
(see: http://manpages.ubuntu.com/manpages/natty/man8/update-rc.d.8.html and 
look for .legacy-bootordering). As mentioned, in my case there are a few 
"legacy" services in the default Ubuntu Server 14.04 installation that make 
the system to work in the legacy mode. In effect, this means I need to set 
priorities manually during service installation because the LSB init header 
gets ignored.

  Best,
  Jacek


W dniu piątek, 12 września 2014 15:28:28 UTC+1 użytkownik Michael DeHaan 
napisał:
>
> "The trouble is that in my case there seem not to be any other way than 
> stating priority manually during service installation (as in the given 
> example)"
>
> The Linux/Unit init systems do allow you to specify service start 
> preconditions as to which services need to be started first.
>
> Perhaps I didn't understand the question.
>
>
> On Fri, Sep 12, 2014 at 10:25 AM, Jacek <[email protected] <javascript:>> 
> wrote:
>
>> Thanks Michael for suggestion.
>>
>> The trouble is that in my case there seem not to be any other way than 
>> stating priority manually during service installation (as in the given 
>> example). I think the quickest (dirty) approach is to run a command to 
>> install the script.
>>
>>   Thanks anyway,
>>   Jacek
>>
>> W dniu piątek, 12 września 2014 14:56:40 UTC+1 użytkownik Michael DeHaan 
>> napisał:
>>>
>>> This sounds like a Linux question about init systems rather than an 
>>> Ansible question.
>>>
>>> I'd suggest asking about how to tailor your init script on a site like 
>>> StackOverflow* or reading up on the documentation for upstart, SysV, or 
>>> whatever you are using.   
>>>
>>> These are usually pretty straightforward, but not cross-Linux in nature 
>>> - you'll probably need to template your init script or package a couple of 
>>> them to account for OS differences.
>>>
>>> * = note StackOverflow isn't great for AnsibleQuestions, this list is 
>>> definitely better for that
>>>
>>> On Fri, Sep 12, 2014 at 9:47 AM, Jacek <[email protected]> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I wanted to start two services A, B while B depends on A (B should 
>>>> start only after A is started). I can't see a way in the current service 
>>>> module to force the priority of the installed service. Have you got any 
>>>> ideas how to attack the problem, preferably in a cross-platform (at least 
>>>> cross-Linux) manner.
>>>>
>>>> I use Ubuntu 14.04 which doesn't honour the LSB init header because 
>>>> there are some legacy services there. The only way I managed to do it from 
>>>> command line is setting priority manually like:
>>>>
>>>> sudo update-rc.d A defaults
>>>> sudo update-rc.d B defaults 25
>>>>
>>>>
>>>>   Any help appreciated.
>>>>
>>>>   Cheers,
>>>>   Jacek
>>>>
>>>>  -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Ansible Project" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>> msgid/ansible-project/c6f965ae-fd01-465f-9c80-
>>>> 4b9019815fe5%40googlegroups.com 
>>>> <https://groups.google.com/d/msgid/ansible-project/c6f965ae-fd01-465f-9c80-4b9019815fe5%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/7d44b223-3838-4537-96bd-a5f1fed95d75%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/7d44b223-3838-4537-96bd-a5f1fed95d75%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/32d1b643-7bd9-48e8-bdb2-efc6fd3b2256%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to