Patchwork [meta-oe,meta-systemd,4/4] xorg-xserver: Add systemd service

login
register
mail settings
Submitter Andrei Gherzan
Date Jan. 14, 2013, 6:42 p.m.
Message ID <1358188976-14581-4-git-send-email-andrei.gherzan@windriver.com>
Download mbox | patch
Permalink /patch/42607/
State Changes Requested, archived
Headers show

Comments

Andrei Gherzan - Jan. 14, 2013, 6:42 p.m.
Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
---
 .../xorg-xserver/xserver-xorg/X.service            |   10 ++++++++++
 .../xorg-xserver/xserver-xorg_1.13.1.bbappend      |   10 ++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100755 meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg/X.service
 create mode 100644 meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend
Martin Jansa - Jan. 14, 2013, 7:13 p.m.
On Mon, Jan 14, 2013 at 08:42:56PM +0200, Andrei Gherzan wrote:
> Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>

meta-openembedded/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init
isn't enough? why?

Cheers,

> ---
>  .../xorg-xserver/xserver-xorg/X.service            |   10 ++++++++++
>  .../xorg-xserver/xserver-xorg_1.13.1.bbappend      |   10 ++++++++++
>  2 files changed, 20 insertions(+), 0 deletions(-)
>  create mode 100755 meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg/X.service
>  create mode 100644 meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend
> 
> diff --git a/meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg/X.service b/meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg/X.service
> new file mode 100755
> index 0000000..7e900ff
> --- /dev/null
> +++ b/meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg/X.service
> @@ -0,0 +1,10 @@
> +[Unit]
> +Description=X Server
> +
> +[Service]
> +Type=simple
> +ExecStartPre=-/bin/rm -rf /var/log/Xorg*
> +ExecStart=/usr/bin/X
> +
> +[Install]
> +WantedBy=multi-user.target
> diff --git a/meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend b/meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend
> new file mode 100644
> index 0000000..a3eb98c
> --- /dev/null
> +++ b/meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend
> @@ -0,0 +1,10 @@
> +FILESEXTRAPATHS := "${THISDIR}/${PN}"
> +
> +PRINC := "${@int(PRINC) + 1}"
> +
> +inherit systemd
> +
> +SRC_URI_append = " file://X.service "
> +
> +SYSTEMD_PACKAGES = "${PN}-systemd"
> +SYSTEMD_SERVICE = "X.service"
> -- 
> 1.7.5.4
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Patch

diff --git a/meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg/X.service b/meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg/X.service
new file mode 100755
index 0000000..7e900ff
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg/X.service
@@ -0,0 +1,10 @@ 
+[Unit]
+Description=X Server
+
+[Service]
+Type=simple
+ExecStartPre=-/bin/rm -rf /var/log/Xorg*
+ExecStart=/usr/bin/X
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend b/meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend
new file mode 100644
index 0000000..a3eb98c
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend
@@ -0,0 +1,10 @@ 
+FILESEXTRAPATHS := "${THISDIR}/${PN}"
+
+PRINC := "${@int(PRINC) + 1}"
+
+inherit systemd
+
+SRC_URI_append = " file://X.service "
+
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE = "X.service"