bluez4: Package systemd service
PATCH 1/4 bluez4: Package systemd service
--- .../bluez/bluez4_4.101.bbappend | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) create mode 100644 meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend
meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend new file +9 -0
@@ -0,0 +1,9 @@ +PRINC := "${@int(PRINC) + 1}" + +inherit systemd + +EXTRA_OECONF += "--with-systemdunitdir=${systemd_unitdir}/system/" + +SYSTEMD_PACKAGES = "${PN}-systemd" +SYSTEMD_SERVICE = "bluetooth.service" +SYSTEMD_AUTO_ENABLE = "disable"
Signature · 1 line
1.7.5.4
PATCH 2/4 ofono: Package systemd service
--- .../recipes-connectivity/ofono/ofono_1.12.bbappend | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) create mode 100644 meta-systemd/meta-oe/recipes-connectivity/ofono/ofono_1.12.bbappend
meta-systemd/meta-oe/recipes-connectivity/ofono/ofono_1.12.bbappend new file +7 -0
@@ -0,0 +1,7 @@ +PRINC := "${@int(PRINC) + 1}" + +inherit systemd + +SYSTEMD_PACKAGES = "${PN}-systemd" +SYSTEMD_SERVICE = "ofono.service" +SYSTEMD_AUTO_ENABLE = "disable"
Signature · 1 line
1.7.5.4
PATCH 3/4 portmap: Add systemd service
In reply to Andrei Gherzan--- .../portmap/portmap/portmap.service | 10 ++++++++++ .../portmap/portmap_6.0.bbappend | 11 +++++++++++ 2 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 meta-systemd/meta-oe/recipes-connectivity/portmap/portmap/portmap.service create mode 100644 meta-systemd/meta-oe/recipes-connectivity/portmap/portmap_6.0.bbappend
meta-systemd/meta-oe/recipes-connectivity/portmap/portmap/portmap.service new file +10 -0
@@ -0,0 +1,10 @@ +[Unit] +Description=Portmap + +[Service] +Type=oneshot +ExecStart=/sbin/portmap -l +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target
meta-systemd/meta-oe/recipes-connectivity/portmap/portmap_6.0.bbappend new file +11 -0
@@ -0,0 +1,11 @@ +FILESEXTRAPATHS := "${THISDIR}/${PN}" + +PRINC := "${@int(PRINC) + 1}" + +inherit systemd + +SYSTEMD_PACKAGES = "${PN}-systemd" +SYSTEMD_SERVICE = "portmap.service" +SYSTEMD_AUTO_ENABLE = "disable" + +SRC_URI_append = " file://portmap.service"
Signature · 1 line
1.7.5.4
PATCH 4/4 xorg-xserver: Add systemd service
In reply to Andrei Gherzan--- .../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
meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg/X.service new file +10 -0
@@ -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
meta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +10 -0
@@ -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"
Signature · 1 line
1.7.5.4
Re: [meta-oe][meta-systemd][PATCH 4/4] xorg-xserver: Add systemd service
Quoted 1 line · Andrei Gherzan
Signed-off-by Andrei Gherzan <[email protected]>
meta-openembedded/meta-systemd/meta-oe/recipes-graphics/xserver-nodm-init isn't enough? why?
Cheers,
Quoted 47 lines
--- .../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.bbappendmeta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg/X.service new file +10
-0@@ -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.targetmeta-systemd/meta-oe/recipes-graphics/xorg-xserver/xserver-xorg_1.13.1.bbappend new file +10
-0@@ -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"Signature · 7 lines
1.7.5.4 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 5 lines · Andrei Gherzan
Signed-off-by Andrei Gherzan <[email protected]>--- .../bluez/bluez4_4.101.bbappend | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) create mode 100644 meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend
http://lists.linuxtogo.org/pipermail/openembedded-devel/2013-January/043452.html
Quoted 24 lines
meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend new file +9
-0@@ -0,0 +1,9 @@ +PRINC := "${@int(PRINC) + 1}" + +inherit systemd + +EXTRA_OECONF += "--with-systemdunitdir=${systemd_unitdir}/system/" + +SYSTEMD_PACKAGES = "${PN}-systemd" +SYSTEMD_SERVICE = "bluetooth.service" +SYSTEMD_AUTO_ENABLE = "disable"Signature · 7 lines
1.7.5.4 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 12 lines · Andrei Gherzan
Signed-off-by Andrei Gherzan <[email protected]>--- .../bluez/bluez4_4.101.bbappend | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) create mode 100644 meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappendmeta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend new file +0
-0
meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend line 9
Quoted 9 lines
meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend new file +9
-0@@ -0,0 +1,9 @@ +PRINC := "${@int(PRINC) + 1}" + +inherit systemd + +EXTRA_OECONF += "--with-systemdunitdir=${systemd_unitdir}/system/" + +SYSTEMD_PACKAGES = "${PN}-systemd" +SYSTEMD_SERVICE = "bluetooth.service" +SYSTEMD_AUTO_ENABLE = "disable"
This is quite interesting: For my first tests I also added the 'disable' but I could not get bluez start automatically so I decided to start it at boot time. Maybe it is related to that I did not yet find a way to setup my bluetooth device automatically. It still needs
hciattach ttyO1 csr
Which service starts blues if not enabled?
Andreas
Andreas Müller
Acked-byQuoted 11 lines · Andreas Müller
Quoted 1 line
+SYSTEMD_AUTO_ENABLE = "disable"
This is quite interesting: For my first tests I also added the 'disable' but I could not get bluez start automatically so I decided to start it at boot time. Maybe it is related to that I did not yet find a way to setup my bluetooth device automatically. It still needs
hciattach ttyO1 csr
Which service starts blues if not enabled?
Andreas
I finally have an idea how blues service is started automatically. So
SYSTEMD_AUTO_ENABLE = "disable"
is the better default. Therefore
Quoted 10 lines · Andreas Müller
Quoted 8 lines · Andreas Müller
Quoted 1 line
+SYSTEMD_AUTO_ENABLE = "disable"
This is quite interesting: For my first tests I also added the 'disable' but I could not get bluez start automatically so I decided to start it at boot time. Maybe it is related to that I did not yet find a way to setup my bluetooth device automatically. It still needs
hciattach ttyO1 csr
Quoted 8 lines
Quoted 3 lines
Which service starts blues if not enabled?
Andreas
I finally have an idea how blues service is started automatically. So
SYSTEMD_AUTO_ENABLE= "disable"is the better default. Therefore
This patch adds bluez4 bbappend in wrong directory (meta-oe instead of oe-core), I'll fix it before merging it.
The same does apply to portmap and ofono bbappend.
Quoted 6 lines
Acked-by Andreas Müller <[email protected]>_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]