You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Marcus Sorensen <sh...@gmail.com> on 2012/10/04 22:59:29 UTC

Re: Review Request: CLOUDSTACK-81: Fix typo in function name that fixes start failure

Does this patch work on certain distros? On CentOS 6.3, if I replace
'start_daemon' with 'daemon' I get:

Starting CloudStack Usage Monitor cloud-usage/etc/init.d/cloud-usage:
Usage: daemon [+/-nicelevel] {program}
cat: /var/run/cloud-usage.pid: No such file or directory
                                                           [FAILED]

I actually have to replace "start_daemon -p" with "daemon --pidfile"
for it to work.

On Tue, Sep 25, 2012 at 4:46 AM, Wido den Hollander <wi...@widodh.nl> wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/7248/#review11892
> -----------------------------------------------------------
>
> Ship it!
>
>
> Ship It!
>
> - Wido den Hollander
>
>
> On Sept. 25, 2012, 11:45 a.m., Rohit Yadav wrote:
>>
>> -----------------------------------------------------------
>> This is an automatically generated e-mail. To reply, visit:
>> https://reviews.apache.org/r/7248/
>> -----------------------------------------------------------
>>
>> (Updated Sept. 25, 2012, 11:45 a.m.)
>>
>>
>> Review request for cloudstack, Prasanna Santhanam, edison su, and Wido den Hollander.
>>
>>
>> Description
>> -------
>>
>> Download original patch and git am <patch>: (CentOS and RHEL)
>> http://bhaisaab.org/patches/cloudstack/0001-CLOUDSTACK-81-Use-non-lsb-function.patch
>>
>> For Fedora:
>> http://bhaisaab.org/patches/cloudstack/0001-CLOUDSTACK-81-Fix-typo-in-function-name-for-script-i.patch
>>
>>
>> Diffs
>> -----
>>
>>   usage/distro/fedora/SYSCONFDIR/rc.d/init.d/cloud-usage.in 69f1b2c
>>
>> Diff: https://reviews.apache.org/r/7248/diff/
>>
>>
>> Testing
>> -------
>>
>>
>> Thanks,
>>
>> Rohit Yadav
>>
>>
>

Re: Review Request: CLOUDSTACK-81: Fix typo in function name that fixes start failure

Posted by Hugo Trippaers <HT...@schubergphilis.com>.
Hey Marcus,

Just checked on RedHat 6.3, --pidfile is present there as well.

Cheers,

Hugo

Verstuurd vanaf mijn iPad

Op 5 okt. 2012 om 15:44 heeft "Marcus Sorensen" <sh...@gmail.com> het volgende geschreven:

> I'm going to be bold and submit a patch for this in anticipation that
> "--pidfile" will be found valid for RHEL and Fedora. It can be
> modified if anyone objects.
> 
> https://reviews.apache.org/r/7460/
> 
> On Fri, Oct 5, 2012 at 3:35 PM, Marcus Sorensen <sh...@gmail.com> wrote:
>> I don't have access to RHEL, but I checked the initscripts source rpms
>> for Fedora 15-18Alpha, and they all have "--pidfile" as an option for
>> the 'daemon' function in /etc/init.d/functions.
>> 
>> On Thu, Oct 4, 2012 at 10:28 PM, Rohit Yadav <ro...@citrix.com> wrote:
>>> 
>>> On 05-Oct-2012, at 2:29 AM, Marcus Sorensen <sh...@gmail.com> wrote:
>>> 
>>>> Does this patch work on certain distros? On CentOS 6.3, if I replace
>>>> 'start_daemon' with 'daemon' I get:
>>>> 
>>>> Starting CloudStack Usage Monitor cloud-usage/etc/init.d/cloud-usage:
>>>> Usage: daemon [+/-nicelevel] {program}
>>>> cat: /var/run/cloud-usage.pid: No such file or directory
>>>>                                                          [FAILED]
>>>> 
>>>> I actually have to replace "start_daemon -p" with "daemon --pidfile"
>>>> for it to work.
>>> 
>>> Hi Marcus, you're right. For CentOS, -p may not work on all version; daemon/lsb standard also suggests to use --pidfile;
>>> The standard refers to use start-stop-daemon with args --start or --stop, instead of daemon [0].
>>> 
>>> Can we check if --pidfile args will work for Fedora, RHEL too even though waf uses the CentOS's script while building rpms?
>>> Comments, Wido, Prasanna, Edison?
>>> 
>>> If you've already fixed that, can you post the patch? Thanks.
>>> 
>>> [0] http://www.thegeekstuff.com/2012/03/lsbinit-script/
>>> 
>>> Regards.
>>> 
>>>> 
>>>> On Tue, Sep 25, 2012 at 4:46 AM, Wido den Hollander <wi...@widodh.nl> wrote:
>>>>> 
>>>>> -----------------------------------------------------------
>>>>> This is an automatically generated e-mail. To reply, visit:
>>>>> https://reviews.apache.org/r/7248/#review11892
>>>>> -----------------------------------------------------------
>>>>> 
>>>>> Ship it!
>>>>> 
>>>>> 
>>>>> Ship It!
>>>>> 
>>>>> - Wido den Hollander
>>>>> 
>>>>> 
>>>>> On Sept. 25, 2012, 11:45 a.m., Rohit Yadav wrote:
>>>>>> 
>>>>>> -----------------------------------------------------------
>>>>>> This is an automatically generated e-mail. To reply, visit:
>>>>>> https://reviews.apache.org/r/7248/
>>>>>> -----------------------------------------------------------
>>>>>> 
>>>>>> (Updated Sept. 25, 2012, 11:45 a.m.)
>>>>>> 
>>>>>> 
>>>>>> Review request for cloudstack, Prasanna Santhanam, edison su, and Wido den Hollander.
>>>>>> 
>>>>>> 
>>>>>> Description
>>>>>> -------
>>>>>> 
>>>>>> Download original patch and git am <patch>: (CentOS and RHEL)
>>>>>> http://bhaisaab.org/patches/cloudstack/0001-CLOUDSTACK-81-Use-non-lsb-function.patch
>>>>>> 
>>>>>> For Fedora:
>>>>>> http://bhaisaab.org/patches/cloudstack/0001-CLOUDSTACK-81-Fix-typo-in-function-name-for-script-i.patch
>>>>>> 
>>>>>> 
>>>>>> Diffs
>>>>>> -----
>>>>>> 
>>>>>> usage/distro/fedora/SYSCONFDIR/rc.d/init.d/cloud-usage.in 69f1b2c
>>>>>> 
>>>>>> Diff: https://reviews.apache.org/r/7248/diff/
>>>>>> 
>>>>>> 
>>>>>> Testing
>>>>>> -------
>>>>>> 
>>>>>> 
>>>>>> Thanks,
>>>>>> 
>>>>>> Rohit Yadav
>>>>>> 
>>>>>> 
>>>>> 
>>> 

Re: Review Request: CLOUDSTACK-81: Fix typo in function name that fixes start failure

Posted by Marcus Sorensen <sh...@gmail.com>.
I'm going to be bold and submit a patch for this in anticipation that
"--pidfile" will be found valid for RHEL and Fedora. It can be
modified if anyone objects.

https://reviews.apache.org/r/7460/

On Fri, Oct 5, 2012 at 3:35 PM, Marcus Sorensen <sh...@gmail.com> wrote:
> I don't have access to RHEL, but I checked the initscripts source rpms
> for Fedora 15-18Alpha, and they all have "--pidfile" as an option for
> the 'daemon' function in /etc/init.d/functions.
>
> On Thu, Oct 4, 2012 at 10:28 PM, Rohit Yadav <ro...@citrix.com> wrote:
>>
>> On 05-Oct-2012, at 2:29 AM, Marcus Sorensen <sh...@gmail.com> wrote:
>>
>>> Does this patch work on certain distros? On CentOS 6.3, if I replace
>>> 'start_daemon' with 'daemon' I get:
>>>
>>> Starting CloudStack Usage Monitor cloud-usage/etc/init.d/cloud-usage:
>>> Usage: daemon [+/-nicelevel] {program}
>>> cat: /var/run/cloud-usage.pid: No such file or directory
>>>                                                           [FAILED]
>>>
>>> I actually have to replace "start_daemon -p" with "daemon --pidfile"
>>> for it to work.
>>
>> Hi Marcus, you're right. For CentOS, -p may not work on all version; daemon/lsb standard also suggests to use --pidfile;
>> The standard refers to use start-stop-daemon with args --start or --stop, instead of daemon [0].
>>
>> Can we check if --pidfile args will work for Fedora, RHEL too even though waf uses the CentOS's script while building rpms?
>> Comments, Wido, Prasanna, Edison?
>>
>> If you've already fixed that, can you post the patch? Thanks.
>>
>> [0] http://www.thegeekstuff.com/2012/03/lsbinit-script/
>>
>> Regards.
>>
>>>
>>> On Tue, Sep 25, 2012 at 4:46 AM, Wido den Hollander <wi...@widodh.nl> wrote:
>>>>
>>>> -----------------------------------------------------------
>>>> This is an automatically generated e-mail. To reply, visit:
>>>> https://reviews.apache.org/r/7248/#review11892
>>>> -----------------------------------------------------------
>>>>
>>>> Ship it!
>>>>
>>>>
>>>> Ship It!
>>>>
>>>> - Wido den Hollander
>>>>
>>>>
>>>> On Sept. 25, 2012, 11:45 a.m., Rohit Yadav wrote:
>>>>>
>>>>> -----------------------------------------------------------
>>>>> This is an automatically generated e-mail. To reply, visit:
>>>>> https://reviews.apache.org/r/7248/
>>>>> -----------------------------------------------------------
>>>>>
>>>>> (Updated Sept. 25, 2012, 11:45 a.m.)
>>>>>
>>>>>
>>>>> Review request for cloudstack, Prasanna Santhanam, edison su, and Wido den Hollander.
>>>>>
>>>>>
>>>>> Description
>>>>> -------
>>>>>
>>>>> Download original patch and git am <patch>: (CentOS and RHEL)
>>>>> http://bhaisaab.org/patches/cloudstack/0001-CLOUDSTACK-81-Use-non-lsb-function.patch
>>>>>
>>>>> For Fedora:
>>>>> http://bhaisaab.org/patches/cloudstack/0001-CLOUDSTACK-81-Fix-typo-in-function-name-for-script-i.patch
>>>>>
>>>>>
>>>>> Diffs
>>>>> -----
>>>>>
>>>>>  usage/distro/fedora/SYSCONFDIR/rc.d/init.d/cloud-usage.in 69f1b2c
>>>>>
>>>>> Diff: https://reviews.apache.org/r/7248/diff/
>>>>>
>>>>>
>>>>> Testing
>>>>> -------
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Rohit Yadav
>>>>>
>>>>>
>>>>
>>

Re: Review Request: CLOUDSTACK-81: Fix typo in function name that fixes start failure

Posted by Marcus Sorensen <sh...@gmail.com>.
I don't have access to RHEL, but I checked the initscripts source rpms
for Fedora 15-18Alpha, and they all have "--pidfile" as an option for
the 'daemon' function in /etc/init.d/functions.

On Thu, Oct 4, 2012 at 10:28 PM, Rohit Yadav <ro...@citrix.com> wrote:
>
> On 05-Oct-2012, at 2:29 AM, Marcus Sorensen <sh...@gmail.com> wrote:
>
>> Does this patch work on certain distros? On CentOS 6.3, if I replace
>> 'start_daemon' with 'daemon' I get:
>>
>> Starting CloudStack Usage Monitor cloud-usage/etc/init.d/cloud-usage:
>> Usage: daemon [+/-nicelevel] {program}
>> cat: /var/run/cloud-usage.pid: No such file or directory
>>                                                           [FAILED]
>>
>> I actually have to replace "start_daemon -p" with "daemon --pidfile"
>> for it to work.
>
> Hi Marcus, you're right. For CentOS, -p may not work on all version; daemon/lsb standard also suggests to use --pidfile;
> The standard refers to use start-stop-daemon with args --start or --stop, instead of daemon [0].
>
> Can we check if --pidfile args will work for Fedora, RHEL too even though waf uses the CentOS's script while building rpms?
> Comments, Wido, Prasanna, Edison?
>
> If you've already fixed that, can you post the patch? Thanks.
>
> [0] http://www.thegeekstuff.com/2012/03/lsbinit-script/
>
> Regards.
>
>>
>> On Tue, Sep 25, 2012 at 4:46 AM, Wido den Hollander <wi...@widodh.nl> wrote:
>>>
>>> -----------------------------------------------------------
>>> This is an automatically generated e-mail. To reply, visit:
>>> https://reviews.apache.org/r/7248/#review11892
>>> -----------------------------------------------------------
>>>
>>> Ship it!
>>>
>>>
>>> Ship It!
>>>
>>> - Wido den Hollander
>>>
>>>
>>> On Sept. 25, 2012, 11:45 a.m., Rohit Yadav wrote:
>>>>
>>>> -----------------------------------------------------------
>>>> This is an automatically generated e-mail. To reply, visit:
>>>> https://reviews.apache.org/r/7248/
>>>> -----------------------------------------------------------
>>>>
>>>> (Updated Sept. 25, 2012, 11:45 a.m.)
>>>>
>>>>
>>>> Review request for cloudstack, Prasanna Santhanam, edison su, and Wido den Hollander.
>>>>
>>>>
>>>> Description
>>>> -------
>>>>
>>>> Download original patch and git am <patch>: (CentOS and RHEL)
>>>> http://bhaisaab.org/patches/cloudstack/0001-CLOUDSTACK-81-Use-non-lsb-function.patch
>>>>
>>>> For Fedora:
>>>> http://bhaisaab.org/patches/cloudstack/0001-CLOUDSTACK-81-Fix-typo-in-function-name-for-script-i.patch
>>>>
>>>>
>>>> Diffs
>>>> -----
>>>>
>>>>  usage/distro/fedora/SYSCONFDIR/rc.d/init.d/cloud-usage.in 69f1b2c
>>>>
>>>> Diff: https://reviews.apache.org/r/7248/diff/
>>>>
>>>>
>>>> Testing
>>>> -------
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> Rohit Yadav
>>>>
>>>>
>>>
>

Re: Review Request: CLOUDSTACK-81: Fix typo in function name that fixes start failure

Posted by Rohit Yadav <ro...@citrix.com>.
On 05-Oct-2012, at 2:29 AM, Marcus Sorensen <sh...@gmail.com> wrote:

> Does this patch work on certain distros? On CentOS 6.3, if I replace
> 'start_daemon' with 'daemon' I get:
> 
> Starting CloudStack Usage Monitor cloud-usage/etc/init.d/cloud-usage:
> Usage: daemon [+/-nicelevel] {program}
> cat: /var/run/cloud-usage.pid: No such file or directory
>                                                           [FAILED]
> 
> I actually have to replace "start_daemon -p" with "daemon --pidfile"
> for it to work.

Hi Marcus, you're right. For CentOS, -p may not work on all version; daemon/lsb standard also suggests to use --pidfile;
The standard refers to use start-stop-daemon with args --start or --stop, instead of daemon [0].

Can we check if --pidfile args will work for Fedora, RHEL too even though waf uses the CentOS's script while building rpms?
Comments, Wido, Prasanna, Edison?

If you've already fixed that, can you post the patch? Thanks.

[0] http://www.thegeekstuff.com/2012/03/lsbinit-script/

Regards.

> 
> On Tue, Sep 25, 2012 at 4:46 AM, Wido den Hollander <wi...@widodh.nl> wrote:
>> 
>> -----------------------------------------------------------
>> This is an automatically generated e-mail. To reply, visit:
>> https://reviews.apache.org/r/7248/#review11892
>> -----------------------------------------------------------
>> 
>> Ship it!
>> 
>> 
>> Ship It!
>> 
>> - Wido den Hollander
>> 
>> 
>> On Sept. 25, 2012, 11:45 a.m., Rohit Yadav wrote:
>>> 
>>> -----------------------------------------------------------
>>> This is an automatically generated e-mail. To reply, visit:
>>> https://reviews.apache.org/r/7248/
>>> -----------------------------------------------------------
>>> 
>>> (Updated Sept. 25, 2012, 11:45 a.m.)
>>> 
>>> 
>>> Review request for cloudstack, Prasanna Santhanam, edison su, and Wido den Hollander.
>>> 
>>> 
>>> Description
>>> -------
>>> 
>>> Download original patch and git am <patch>: (CentOS and RHEL)
>>> http://bhaisaab.org/patches/cloudstack/0001-CLOUDSTACK-81-Use-non-lsb-function.patch
>>> 
>>> For Fedora:
>>> http://bhaisaab.org/patches/cloudstack/0001-CLOUDSTACK-81-Fix-typo-in-function-name-for-script-i.patch
>>> 
>>> 
>>> Diffs
>>> -----
>>> 
>>>  usage/distro/fedora/SYSCONFDIR/rc.d/init.d/cloud-usage.in 69f1b2c
>>> 
>>> Diff: https://reviews.apache.org/r/7248/diff/
>>> 
>>> 
>>> Testing
>>> -------
>>> 
>>> 
>>> Thanks,
>>> 
>>> Rohit Yadav
>>> 
>>> 
>>