From: Jacek Konieczny <jajcus@jajcus.net>
To: "Luis R. Rodriguez" <mcgrof@do-not-panic.com>,
xen-devel@lists.xenproject.org
Cc: "Luis R. Rodriguez" <mcgrof@suse.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Ian Campbell <ian.campbell@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH] systemd: add support initial systemd service files
Date: Wed, 12 Mar 2014 09:16:28 +0100 [thread overview]
Message-ID: <532017DC.1000208@jajcus.net> (raw)
In-Reply-To: <1394582593-8910-1-git-send-email-mcgrof@do-not-panic.com>
On 03/12/14 01:03, Luis R. Rodriguez wrote:
> From: "Luis R. Rodriguez" <mcgrof@suse.com>
>
> I've tested these on an OpenSUSE Tumbleweed source install.
> They are based on the ones from OpenSUSE but slightly modified.
These seems quite wrong to me. Why create systemd services, while they
are only wrappers to the old-style LSB scripts? What do we gain?
Systemd provides great process control and monitoring, but it can only
do that if it starts the process by itself – it knows the main PID then,
knows if the service is running, etc.
systemd can do a better job handling old init.d scripts through its
compatibility functions than when it is told to run such a script
through ExecStart/ExecStop.
> diff --git a/tools/hotplug/Linux/xencommons.service b/tools/hotplug/Linux/xencommons.service
> new file mode 100644
> index 0000000..8042b24
> --- /dev/null
> +++ b/tools/hotplug/Linux/xencommons.service
> @@ -0,0 +1,12 @@
> +[Unit]
> +Description=Xencommons - Script to start and stop xenstored and xenconsoled
> +ConditionPathIsDirectory=/proc/xen
> +
> +[Service]xenstored
> +Type=oneshot
> +RemainAfterExit=true
> +ExecStart=-/etc/init.d/xencommons start
> +ExecStop=/etc/init.d/xencommons stop
This is especially bad: two processes started through one service, no
startup status verified.
The right thing to do is to provide separate systemd unit for xenstored
and xenconsoled. If 'xencommons.service' is needed, to have a compatible
service name with the LSB scripts, then it should be a dummy service with:
Wants=xenstored.service xenconsoled.service
And both xenstored.service and xenconsoled.service should have:
PartOf=xencommons.service
Greets,
Jacek
next prev parent reply other threads:[~2014-03-12 8:16 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-12 0:03 [PATCH] systemd: add support initial systemd service files Luis R. Rodriguez
2014-03-12 8:16 ` Jacek Konieczny [this message]
2014-03-12 8:35 ` Luis R. Rodriguez
2014-03-12 9:07 ` Jacek Konieczny
2014-03-12 9:19 ` Luis R. Rodriguez
2014-03-12 11:24 ` Jan Rękorajski
2014-03-12 11:22 ` Ian Campbell
2014-03-12 19:44 ` M A Young
2014-03-12 23:43 ` Luis R. Rodriguez
2014-03-13 0:37 ` M A Young
2014-03-12 23:53 ` Luis R. Rodriguez
2014-03-13 0:01 ` M A Young
2014-03-13 0:06 ` Luis R. Rodriguez
2014-03-13 8:03 ` Jacek Konieczny
2014-03-13 9:52 ` Ian Campbell
2014-03-13 9:55 ` Jacek Konieczny
2014-03-12 11:14 ` Ian Jackson
2014-03-12 11:25 ` Ian Campbell
2014-03-12 11:42 ` Andrew Cooper
2014-03-12 18:35 ` Luis R. Rodriguez
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=532017DC.1000208@jajcus.net \
--to=jajcus@jajcus.net \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=mcgrof@do-not-panic.com \
--cc=mcgrof@suse.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).