<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12955</bug_id>
          
          <creation_ts>2018-10-11 06:32:11 +0000</creation_ts>
          <short_desc>update-rc.d: Provide option to permanently disable service, also after upgrade.</short_desc>
          <delta_ts>2019-06-28 02:12:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.8 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Changqing Li">changqing.li</reporter>
          <assigned_to name="Changqing Li">changqing.li</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81797</commentid>
    <comment_count>0</comment_count>
    <who name="Changqing Li">changqing.li</who>
    <bug_when>2018-10-11 06:32:11 +0000</bug_when>
    <thetext>1. currently, we use update_rc.d from this link:https://git.yoctoproject.org/cgit/cgit.cgi/update-rc.d/log/

I think it is originally get from https://github.com/philb/update-rc.d.


with this version of update-rc.d, we can disable service by command
&quot;update-rc.d -f service_name remove&quot;


but it will not work after upgrade package. 
refer this link:
http://positon.org/disable-a-service-with-update-rcd-under-debian-update-resistant

so maybe we also need an enhancement to do this.


2. from yocto doc, https://www.yoctoproject.org/docs/2.4.2/ref-manual/ref-manual.html#var-INITSCRIPT_PARAMS


it linked man page of http://www.tin.org/bin/man.cgi?section=8&amp;topic=update-rc.d, but actually, we don&apos;t use same update-rc.d with Debian GNU/Linux&apos;s update-rc.d.  This should be aglined.



3. current update-rc.d writed use shell, update-rc.d from Debian writed use perl.



PS: I have not test function of update-rc.d fully, specially the link mentioned
    after upgrade.  I can only check them when have time. here first raise this
    request.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81798</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-10-11 14:28:47 +0000</bug_when>
    <thetext>FWIW we do not want to add a perl dependency into this core part of the system.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>