summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2012-10-17 19:02:39 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2012-10-18 20:32:58 +0200
commit39a5d0424eb6b506f4f9ce4eb8c49e04093d5221 (patch)
tree53fb427055ed03080302ad3fe901675579d5cb94
parentb86532e03bf534caf827088b75c34aa6aec12938 (diff)
lxdm: start it as a systemd service
-rw-r--r--recipes-lxde/lxdm/lxdm/lxdm.service10
-rw-r--r--recipes-lxde/lxdm/lxdm_0.4.1.bbappend15
2 files changed, 19 insertions, 6 deletions
diff --git a/recipes-lxde/lxdm/lxdm/lxdm.service b/recipes-lxde/lxdm/lxdm/lxdm.service
new file mode 100644
index 0000000..b01c27d
--- /dev/null
+++ b/recipes-lxde/lxdm/lxdm/lxdm.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=LXDM Display Manager
+After=systemd-user-sessions.service
+
+[Service]
+ExecStart=/usr/sbin/lxdm
+StandardOutput=syslog
+
+[Install]
+Alias=display-manager.service
diff --git a/recipes-lxde/lxdm/lxdm_0.4.1.bbappend b/recipes-lxde/lxdm/lxdm_0.4.1.bbappend
index 028de4c..3186065 100644
--- a/recipes-lxde/lxdm/lxdm_0.4.1.bbappend
+++ b/recipes-lxde/lxdm/lxdm_0.4.1.bbappend
@@ -1,15 +1,12 @@
-PRINC = "3"
+PRINC = "4"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += " \
- file://configfiles.patch \
+ file://configfiles.patch \
+ file://lxdm.service \
"
-#issues during V2.0alpha development, might be removed later
-INITSCRIPT_PARAMS_colibri-t20 = "start 98 5 2 . stop 20 0 1 6 ."
-
-
pkg_postinst_${PN}() {
# Register up as default dm
mkdir -p ${sysconfdir}/X11/
@@ -21,3 +18,9 @@ pkg_postinst_${PN}() {
pkg_postrm_${PN} () {
sed -i /lxdm/d ${sysconfdir}/X11/default-display-manager || true
}
+
+do_install_append () {
+ install -d ${D}/${sysconfdir}/systemd/system
+ install -m 0644 ${WORKDIR}/lxdm.service ${D}/${sysconfdir}/systemd/system
+ ln -s lxdm.service ${D}/${sysconfdir}/systemd/system/display-manager.service
+}