I have made the following changes intended for : CE:UX:MTF / nemo-mobile-session
Please review and accept or decline. BOSS has already run some checks on this request. See the "Messages from BOSS" section below. https://build.pub.meego.com//request/show/8371 Thank You, Pekka Lundstrom [This message was auto-generated] --- Request # 8371: Messages from BOSS: State: review at 2013-03-04T12:36:07 by bossbot Reviews: accepted by bossbot : Prechecks succeeded. new for CE-maintainers : Please replace this text with a review and approve/reject the review (not the SR). BOSS will take care of the rest Changes: submit: home:plundstr:branches:CE:UX:MTF / nemo-mobile-session -> CE:UX:MTF / nemo-mobile-session changes files: -------------- --- nemo-mobile-session.changes +++ nemo-mobile-session.changes @@ -0,0 +1,5 @@ +* Mon Mar 04 2013 Pekka Lundstrom <[email protected]> - 13 +- Runlevel4 (actdead) modified to do poweroff. Fixes: NEMO#631 +- Added init-done service and binary (to keep dsme happy and timeouts + reasonable). + old: ---- nemo-mobile-session-12.tar.gz new: ---- nemo-mobile-session-13.tar.gz spec files: ----------- --- nemo-mobile-session.spec +++ nemo-mobile-session.spec @@ -1,6 +1,6 @@ Name: nemo-mobile-session Summary: Target for nemo systemd user session -Version: 12 +Version: 13 Release: 0 Group: System/Libraries License: Public Domain @@ -24,14 +24,21 @@ mkdir -p %{buildroot}/lib/systemd/system/graphical.target.wants/ mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/ mkdir -p %{buildroot}/var/lib/environment/nemo +mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/ + install -m 0644 nemo-mobile-session.target %{buildroot}%{_libdir}/systemd/user/ install -m 0644 nemo-middleware.target %{buildroot}%{_libdir}/systemd/user/ install -m 0644 [email protected] %{buildroot}/lib/systemd/system/ install -m 0644 50-nemo-mobile-ui.conf %{buildroot}/var/lib/environment/nemo/ +install -m 0644 init-done.service %{buildroot}/lib/systemd/system/ +install -D -m 0744 init-done %{buildroot}/%{_libdir}/startup/init-done ln -sf ../[email protected] %{buildroot}/lib/systemd/system/graphical.target.wants/[email protected] #ln -sf ../xterm.service %{buildroot}/%{_libdir}/systemd/user/nemo-mobile-session.target.wants/ ln -sf nemo-mobile-session.target %{buildroot}%{_libdir}/systemd/user/default.target +ln -sf ../init-done.service %{buildroot}/lib/systemd/system/graphical.target.wants/ +# In nemo actdead is not (yet) supported. We define actdead (runlevel4) to poweroff +ln -sf /lib/systemd/system/poweroff.target %{buildroot}%{_sysconfdir}/systemd/system/runlevel4.target ln -sf ../lipstick.service %{buildroot}%{_libdir}/systemd/user/nemo-mobile-session.target.wants/ ln -sf ../meegotouch-applauncherd.service %{buildroot}%{_libdir}/systemd/user/nemo-mobile-session.target.wants/ @@ -55,5 +62,9 @@ %{_libdir}/systemd/user/nemo-middleware.target.wants/ %{_libdir}/systemd/user/default.target /lib/systemd/system/graphical.target.wants/[email protected] +/lib/systemd/system/graphical.target.wants/init-done.service /lib/systemd/system/[email protected] +/lib/systemd/system/init-done.service +%{_sysconfdir}/systemd/system/runlevel4.target +%{_libdir}/startup/init-done other changes: -------------- ++++++ nemo-mobile-session-12.tar.gz -> nemo-mobile-session-13.tar.gz --- init-done +++ init-done @@ -0,0 +1,6 @@ +#!/bin/sh +# This gets run at the end of the boot when all services have been started + +# Inform mce, dsme and others that boot is over +dbus-send --system --type=signal /com/nokia/startup/signal com.nokia.startup.signal.runlevel_switch_done "int32:5" +dbus-send --system --type=signal /com/nokia/startup/signal com.nokia.startup.signal.init_done "int32:5" --- init-done.service +++ init-done.service @@ -0,0 +1,14 @@ +# This will call init-done once all services have been started + +[Unit] +Description=Indicate boot is done [email protected] + +[Service] +Type=oneshot +RemainAfterExit=no +ExecStart=/usr/lib/startup/init-done + +[Install] +WantedBy=graphical.target +
