From: Lukasz Majewski <l.majewski@majess.pl>
To: Jussi Kukkonen <jussi.kukkonen@intel.com>
Cc: Yocto Project <yocto@yoctoproject.org>
Subject: Re: [sysvinit] Problem with disabling sysvinit service
Date: Tue, 15 Nov 2016 10:54:05 +0100 [thread overview]
Message-ID: <20161115105405.4eea9271@jawa> (raw)
In-Reply-To: <CAHiDW_E5G6Sbeb__Kza3XGTXDh=v2670FOXKvfXKLkR4Ld7gAg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1901 bytes --]
Hi Jussi,
> On 13 November 2016 at 16:51, Lukasz Majewski <l.majewski@majess.pl>
> wrote:
>
> > Dear All,
> >
> > Maybe here I would find answer to question which puzzles me from
> > some time.
> >
> > The problem:
> >
> > Disable syslog service on startup of sysvinit based board.
> > (syslog is defined in e.g. /etc/rc5.d/S20syslog
> > -> /etc/init.d/syslog)
> >
> > Syslog on my setup is provided by busybox.
> >
> > I was trying to find where 'update-rc.d ... syslog ...' is called
> > in the poky (2.1.2) source tree but without any success.
> >
> > Then, I've discovered that it is appended to INITSCRIPT_NAME
> > variable and further processed by update-rc.d.bbclass
> >
>
> > Is there any method/recipe which would allow just removing S20klogd
> > symlink from /etc/rcX.d from the created rootfs?
> >
> >
> You should be able to modify (append) the busybox recipe to not
> create the symlinks in the first place. I'm not 100% sure what the
> correct line is but INITSCRIPT_PARAMS is the variable you want to
> modify. Maybe something like this?
>
> INITSCRIPT_PARAMS_${PN}-syslog = "start 80 . stop 20 0 1 6 ."
>
> (that should be the default except with all start runlevels removed)
>
> - Jussi
>
Thanks for advice.
I've also thought about extending image.bbclass
to put function between do_rootfs and do_build.
In this way I could run update-rc.d in it.
Anyway, I will test your solution.
Thanks and best regards,
Łukasz Majewski
>
>
> > The goal is to have syslog installed (in this case built into
> > busybox), but disabled at boot up time.
> >
> > Any help is more than welcome.
> >
> > Tanks in advance,
> > Łukasz Majewski
> >
> > --
> > _______________________________________________
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> >
> >
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
prev parent reply other threads:[~2016-11-15 14:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-13 14:51 [sysvinit] Problem with disabling sysvinit service Lukasz Majewski
2016-11-15 8:31 ` Jussi Kukkonen
2016-11-15 9:54 ` Lukasz Majewski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161115105405.4eea9271@jawa \
--to=l.majewski@majess.pl \
--cc=jussi.kukkonen@intel.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.