Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 62190E00B20; Mon, 26 May 2014 12:54:32 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=RDNS_NONE,SPF_HELO_PASS autolearn=no version=3.3.1 X-Spam-HAM-Report: * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS Received: from sierrawireless.com (unknown [208.81.121.44]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DB739E0073D for ; Mon, 26 May 2014 12:54:30 -0700 (PDT) Received: from [192.168.3.163] (184.71.143.26) by CARMD-EXCHHUB01.sierrawireless.local (10.0.6.2) with Microsoft SMTP Server (TLS) id 8.3.348.2; Mon, 26 May 2014 12:54:29 -0700 From: Darcy Watkins To: yocto In-Reply-To: <1401128516.23417.9.camel@kihei.inmotion.gotdns.com> References: <1401128516.23417.9.camel@kihei.inmotion.gotdns.com> Date: Mon, 26 May 2014 12:54:28 -0700 Message-ID: <1401134068.18829.6.camel@kihei.inmotion.gotdns.com> MIME-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-30.el6) Subject: Re: update-rc.d initscript shows up as S00... rather than S09... X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2014 19:54:32 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Mon, 2014-05-26 at 11:21 -0700, Darcy Watkins wrote: > Hello, > > In one of my bitbake recipes, I have... > > > inherit update-rc.d > ... > INITSCRIPT_NAME = "watchdog-progressd" > INITSCRIPT_PARAMS = "start 09 S . stop 90 0 6 ." I found what I think the cause is. The '09' must be parsed as a number rather than a sort-key string of digits so it is handled as an illegal octal literal. '07' and less was fine. '08 and '09' failed. I am guessing that the literal parser returned a zero value, hence the S00. So I switched to NOT use leading zero and it was handled OK. It also padded the '8' or '9' with a leading zero in the output. INITSCRIPT_PARAMS = "start 9 S . stop 90 0 6 ." This is one to add to a "...for dummies" series. ;-) > > > ...and then I install my initscript at > ${D}${sysconfdir}/init.d/watchdog-progressd during do_install() > > According to examples I have seen (and some of my other packages/recipes > that worked with no problem), this should result > in /etc/rcS.d/S09watchdog-progressd symlinking > to /etc/init.d/watchdog-progressd > > What sort of error would cause it to show up in /etc/rcS.d/ as > S00watchdog-progressd instead? > > That is 'S00' rather than 'S09'. > > > I am building for an x86 target using 'daisy' branch. > > > -- Regards, Darcy --- Darcy Watkins Staff Engineer, Firmware In Motion Technology, a Sierra Wireless company 350-625 Agnes St. New Westminster, BC Canada, V3M 5Y4 [P1]