From 16fe0e3e97763bb757a717f4c0ac9cc0bf9adc73 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Fri, 22 Aug 2014 15:16:40 +0900 Subject: To run Xorg during booting a image Change-Id: Ibe440e52e9340b5c4630de8c542d08ad84e289ae --- packaging/x11-common.spec | 5 +++++ system/display-manager-run.service | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/packaging/x11-common.spec b/packaging/x11-common.spec index 334e4d2..1edfc98 100644 --- a/packaging/x11-common.spec +++ b/packaging/x11-common.spec @@ -32,9 +32,14 @@ mkdir -p %{buildroot}/usr/lib/systemd/system mv %{buildroot}/display-manager.path %{buildroot}/usr/lib/systemd/system/ mv %{buildroot}/display-manager.service %{buildroot}/usr/lib/systemd/system/ mv %{buildroot}/display-manager-run.service %{buildroot}/usr/lib/systemd/system/ +mkdir -p %{buildroot}/usr/lib/systemd/system/multi-user.target.wants +ln -sf ../display-manager.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/display-manager.service +ln -sf ../display-manager-run.service %{buildroot}/usr/lib/systemd/system/multi-user.target.wants/display-manager-run.service %files %defattr(-,root,root,-) /usr/lib/systemd/system/display-manager.path /usr/lib/systemd/system/display-manager.service /usr/lib/systemd/system/display-manager-run.service +/usr/lib/systemd/system/multi-user.target.wants/display-manager.service +/usr/lib/systemd/system/multi-user.target.wants/display-manager-run.service diff --git a/system/display-manager-run.service b/system/display-manager-run.service index 49148c8..eda918f 100644 --- a/system/display-manager-run.service +++ b/system/display-manager-run.service @@ -2,10 +2,13 @@ Description=Xorg display daemon [Service] -User=display -ExecStart=/usr/bin/startx -StandardInput=tty -TTYPath=/dev/tty7 +#User=display +Restart=always +RestartSec=10 +Type=forking +ExecStart=/usr/bin/Xorg -logfile /var/log/Xorg.0.log +#StandardInput=tty +#TTYPath=/dev/tty7 #adding the capability to configure ttys #may be needed if the user 'display' doesn't own the tty -- cgit v1.2.3