Bug 12955 - update-rc.d: Provide option to permanently disable service, also after upgrade.
Summary: update-rc.d: Provide option to permanently disable service, also after upgrade.
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.8
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 2.8 M2
Assignee: Changqing Li
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-10-11 06:32 UTC by Changqing Li
Modified: 2019-06-28 02:12 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Changqing Li 2018-10-11 06:32:11 UTC
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
"update-rc.d -f service_name remove"


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&topic=update-rc.d, but actually, we don't use same update-rc.d with Debian GNU/Linux'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.
Comment 1 Richard Purdie 2018-10-11 14:28:47 UTC
FWIW we do not want to add a perl dependency into this core part of the system.