<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>7725</bug_id>
          
          <creation_ts>2005-08-21 02:23:59 +0400</creation_ts>
          <short_desc>не везде работает --make-pidfile в start-daemon</short_desc>
          <delta_ts>2005-09-07 13:59:37 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>service</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Afanasov Dmitry">ender</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>placeholder</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28919</commentid>
    <comment_count>0</comment_count>
    <who name="Afanasov Dmitry">ender</who>
    <bug_when>2005-08-21 02:24:00 +0400</bug_when>
    <thetext>--make-pidfile в строке 
start_daemon --make-pidfile --pidfile &quot;$PIDFILE&quot; --name verlihub --lockfile 
&quot;$LOCKFILE&quot; --expect-user root --
            initlog -n verlihub -c verlihub -q --facility daemon --priority info
отказывается работать
в варианте 
start_daemon --pidfile &quot;$PIDFILE&quot; --name verlihub --lockfile &quot;$LOCKFILE&quot; --make-
pidile --expect-user root --
            initlog -n verlihub -c verlihub -q --facility daemon --priority info
всё нормально

всё из-за дополнительного shift в 
        --make-pidfile)
            shift
            MAKE_PIDFILE=&quot;--background --make-pidfile&quot;
            shift

просто так сьедается следующий параметр, где в первом случае это --pidfile, в 
итоге цикл завершается, во втором это -- - в результате завершение цикла ничему 
не мешает.

надо убрать второй shift, тогда работает в обоих случаях

следующий патчик решает проблему:
--- functions.old   2005-08-21 02:24:21 +0400
+++ functions   2005-08-21 02:24:27 +0400
@@ -149,7 +149,6 @@
        --make-pidfile)
            shift
            MAKE_PIDFILE=&quot;--background --make-pidfile&quot;
-           shift
            ;;
        [-+][0-9]*)
            NICE=&quot;$1&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28961</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2005-08-22 22:40:28 +0400</bug_when>
    <thetext>Да, спасибо.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30045</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2005-09-05 02:01:20 +0400</bug_when>
    <thetext>Applied in 0.5.9-alt1.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>