From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Muhammad Shakeel <muhammad_shakeel@mentor.com>,
Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] systemd: Remove init.d dir if systemd unit file is present and sysvinit not a distro feature
Date: Wed, 24 Jul 2013 14:55:06 +0100 [thread overview]
Message-ID: <2332743.8PXxt6HHNa@helios> (raw)
In-Reply-To: <51EFD503.9070404@mentor.com>
On Wednesday 24 July 2013 18:22:11 Muhammad Shakeel wrote:
> On 07/23/2013 03:46 PM, Enrico Scholz wrote:
> > "Shakeel, Muhammad"
> >
> > <muhammad_shakeel-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org> writes:
> >> If systemd is supported DISTRO_FEATURE and sysvinit is not and also if
> >> systemd_unitdir contains a service file(s) then no need to keep init.d
> >> scripts for sysvinit compatibility.
> >> ...
> >> + for filename in os.listdir(systemd_unitdir):
> >
> >> + if filename.endswith(".service"):
> > why only .service? Other systemd files (.socket, .mount, .path, ...)
> > can also replace initscripts.
>
> Other systemd unit files are normally accompanied with a .service file
> (this is just I observed and not mandatory).
>
> If we come across any package which is not providing .service file but
> only some other type of systemd unit file for initscripts replacement
> then we can always add check for that type.
> According to systemd documentation there can be 10 types of systemd unit
> files and checking for all here can be a little overhead.
Would it work to simply check for any files instaled into systemd_unitdir?
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
next prev parent reply other threads:[~2013-07-24 13:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-23 10:03 [PATCH] systemd: Remove init.d dir if systemd unit file is present and sysvinit not a distro feature Shakeel, Muhammad
2013-07-23 10:46 ` Enrico Scholz
2013-07-24 13:22 ` Muhammad Shakeel
2013-07-24 13:55 ` Paul Eggleton [this message]
2013-07-25 9:56 ` Burton, Ross
2013-07-25 10:10 ` Muhammad Shakeel
2013-07-25 11:08 ` ChenQi
2013-07-25 11:19 ` Muhammad Shakeel
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=2332743.8PXxt6HHNa@helios \
--to=paul.eggleton@linux.intel.com \
--cc=enrico.scholz@sigma-chemnitz.de \
--cc=muhammad_shakeel@mentor.com \
--cc=openembedded-core@lists.openembedded.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.