From 877f25ec300bf60c8a6d19ca39b2cdcd57ec2b98 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Thu, 11 Apr 2013 05:03:09 -0700 Subject: [PATCH] add update systemd service Change-Id: Ia849af649434b728f3980a6fa90736d0a61f4219 Signed-off-by: William Douglas --- configure.ac | 1 + systemd-units/Makefile.am | 1 + systemd-units/plymouth-update.service.in | 12 ++++++++++++ 3 files changed, 14 insertions(+) create mode 100644 systemd-units/plymouth-update.service.in diff --git a/configure.ac b/configure.ac index f2a3ae4..8c5e2c3 100644 --- a/configure.ac +++ b/configure.ac @@ -464,6 +464,7 @@ AC_CONFIG_FILES([Makefile systemd-units/plymouth-read-write.service systemd-units/plymouth-reboot.service systemd-units/plymouth-start.service + systemd-units/plymouth-update.service systemd-units/plymouth-switch-root.service systemd-units/systemd-ask-password-plymouth.path systemd-units/systemd-ask-password-plymouth.service diff --git a/systemd-units/Makefile.am b/systemd-units/Makefile.am index 3aa44df..4dea729 100644 --- a/systemd-units/Makefile.am +++ b/systemd-units/Makefile.am @@ -1,6 +1,7 @@ systemd_unit_templates = \ plymouth-switch-root.service.in \ plymouth-start.service.in \ + plymouth-update.service.in \ plymouth-read-write.service.in \ plymouth-quit.service.in \ plymouth-quit-wait.service.in \ diff --git a/systemd-units/plymouth-update.service.in b/systemd-units/plymouth-update.service.in new file mode 100644 index 0000000..7f33ee3 --- /dev/null +++ b/systemd-units/plymouth-update.service.in @@ -0,0 +1,12 @@ +[Unit] +Description=Show Plymouth Update Screen +DefaultDependencies=no +After=systemd-vconsole-setup.service systemd-udev-trigger.service +ConditionKernelCommandLine=!plymouth.enable=0 + +[Service] +ExecStart=@PLYMOUTH_DAEMON_DIR@/plymouthd --mode=updates --pid-file=@plymouthruntimedir@/pid --attach-to-session +ExecStartPost=-/usr/bin/udevadm settle --timeout=30 --exit-if-exists=/sys/class/drm/card0/dev ; /usr/bin/udevadm settle --timeout=30 --exit-if-exists=/sys/class/graphics/fb0/dev ; @PLYMOUTH_CLIENT_DIR@/plymouth show-splash ; @PLYMOUTH_CLIENT_DIR@/plymouth change-mode --updates +Type=forking +KillMode=none +SendSIGKILL=no -- 2.7.4