Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 0/7] [RFC] Introduce services as a (long-term) replacement for _INSTALL_INIT_(SYSV|SYSTEMD) (branch yem/services)
Date: Wed, 11 Mar 2015 23:30:18 +0100	[thread overview]
Message-ID: <cover.1426112628.git.yann.morin.1998@free.fr> (raw)

Hello All!

Following up on Gustavo's proposal [0] on a clean up on our init
scripts (and eventually our systemd unit files), here is an *RFC*
series that tries to implement Gustavo's idea.

The series is split in four parts:

  - patches 1-3 are preparatory work, and not much interesting in the
    Grand Scheme of Life;

  - patches 4-5 introduce a generated kconfig snippet, that contains
    the list of services for each enabled packages, that the user can
    enable/disable at will, directly from the menuconfig (for now, the
    default is that all services are disabled, that can be changed
    later);

  - patch 6 is the guts that installs the service files:
    - installs the service's startup script,
    - enables/disables the service,
    - installs the service's configuration, if it exists;

  - patch 7 is just an example (with empty scripts) of how to declare
    services in a package.

To be noted:
  - the code will need some revamp; this is just meant to be an RFC!
  - only sysv init is handled for now
  - this is by far incomplete even for the sysv case
  - the /etc/config/ part has been left out for now; it would anyway
    most probably provided via a rootfs-overlay
  - the manual part is missing
  - there are typoes all over the place :-/

As usual: on your mark, get set, comment! ;-)

[0] http://lists.busybox.net/pipermail/buildroot/2015-March/121086.html

Regards,
Yann E. MORIN.


The following changes since commit a4788aa6157d1496cdd32cb9802710d4e97bc550:

  btrfs-progs: bump to version 3.19 (2015-03-11 22:38:36 +0100)

are available in the git repository at:

  git://git.busybox.net/~ymorin/git/buildroot yem/services

for you to fetch changes up to f2c8684c9a6cfa5cfe8d776ac8ce4693667c329f:

  [NOT TO BE APPLIED] package/busybox: add afake services as example (2015-03-11 23:08:51 +0100)

----------------------------------------------------------------
Yann E. MORIN (7):
      package infra: print the name of the package being parsed
      Makefile: always scan packages' .mk files, even with no .config
      Makefile: introduce a intermediate rule before the configurators
      packages: introduce a generated kconfig snippet in the menuconfig
      packages: generate services sub-menu
      [INCOMPLETE] pkg-generic: act on enabled services
      [NOT TO BE APPLIED] package/busybox: add afake services as example

 Config.in                    |  4 +++
 Makefile                     | 67 ++++++++++++++++++++++++++++----------------
 package/Config.in            |  2 ++
 package/busybox/S98bar       |  0
 package/busybox/S99foo       |  0
 package/busybox/bar.defaults |  1 +
 package/busybox/busybox.mk   |  2 ++
 package/pkg-generic.mk       | 28 ++++++++++++++++++
 package/pkg-utils.mk         |  3 ++
 9 files changed, 83 insertions(+), 24 deletions(-)
 create mode 100644 package/busybox/S98bar
 create mode 100644 package/busybox/S99foo
 create mode 100644 package/busybox/bar.defaults

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

             reply	other threads:[~2015-03-11 22:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-11 22:30 Yann E. MORIN [this message]
2015-03-11 22:30 ` [Buildroot] [PATCH 1/7] package infra: print the name of the package being parsed Yann E. MORIN
2015-03-11 22:30 ` [Buildroot] [PATCH 2/7] Makefile: always scan packages' .mk files, even with no .config Yann E. MORIN
2015-03-11 22:30 ` [Buildroot] [PATCH 3/7] Makefile: introduce a intermediate rule before the configurators Yann E. MORIN
2015-03-11 22:30 ` [Buildroot] [PATCH 4/7] packages: introduce a generated kconfig snippet in the menuconfig Yann E. MORIN
2015-03-11 22:30 ` [Buildroot] [PATCH 5/7] packages: generate services sub-menu Yann E. MORIN
2015-03-11 22:30 ` [Buildroot] [PATCH 6/7] [INCOMPLETE] pkg-generic: act on enabled services Yann E. MORIN
2015-03-11 22:30 ` [Buildroot] [PATCH 7/7] [NOT TO BE APPLIED] package/busybox: add afake services as example Yann E. MORIN
2015-03-12 13:40 ` [Buildroot] [PATCH 0/7] [RFC] Introduce services as a (long-term) replacement for _INSTALL_INIT_(SYSV|SYSTEMD) (branch yem/services) Mike Williams
2015-03-12 14:59 ` Thomas Petazzoni
2015-03-13 13:39   ` Mike Williams

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=cover.1426112628.git.yann.morin.1998@free.fr \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox