From 0278dfeb30a1d1022501f5671c548283d7ee9387 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 13 Aug 2010 02:19:24 +0200 Subject: unit: create three seperate plymouth service for halt/poweroff/reboot --- units/fedora/plymouth-halt.service | 21 +++++++++++++++++++++ units/fedora/plymouth-poweroff.service | 21 +++++++++++++++++++++ units/fedora/plymouth-reboot.service | 21 +++++++++++++++++++++ units/fedora/plymouth-shutdown.service | 21 --------------------- 4 files changed, 63 insertions(+), 21 deletions(-) create mode 100644 units/fedora/plymouth-halt.service create mode 100644 units/fedora/plymouth-poweroff.service create mode 100644 units/fedora/plymouth-reboot.service delete mode 100644 units/fedora/plymouth-shutdown.service (limited to 'units') diff --git a/units/fedora/plymouth-halt.service b/units/fedora/plymouth-halt.service new file mode 100644 index 0000000000..9b77c5d776 --- /dev/null +++ b/units/fedora/plymouth-halt.service @@ -0,0 +1,21 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[Unit] +Description=Show Plymouth Halt Screen +After=getty@tty1.service prefdm.service +DefaultDependencies=no + +[Service] +ExecStart=/sbin/plymouthd --mode=shutdown +ExecStartPost=-/usr/bin/plymouth --sysinit +ExecStartPost=-/usr/bin/plymouth --show-splash +ExecStartPost=-/usr/bin/plymouth message '--text=Halting...' +Type=forking + +[Install] +WantedBy=halt.target diff --git a/units/fedora/plymouth-poweroff.service b/units/fedora/plymouth-poweroff.service new file mode 100644 index 0000000000..538a0c5cc5 --- /dev/null +++ b/units/fedora/plymouth-poweroff.service @@ -0,0 +1,21 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[Unit] +Description=Show Plymouth Power Off Screen +After=getty@tty1.service prefdm.service +DefaultDependencies=no + +[Service] +ExecStart=/sbin/plymouthd --mode=shutdown +ExecStartPost=-/usr/bin/plymouth --sysinit +ExecStartPost=-/usr/bin/plymouth --show-splash +ExecStartPost=-/usr/bin/plymouth message '--text=Powering Off...' +Type=forking + +[Install] +WantedBy=poweroff.target diff --git a/units/fedora/plymouth-reboot.service b/units/fedora/plymouth-reboot.service new file mode 100644 index 0000000000..286c8abf6c --- /dev/null +++ b/units/fedora/plymouth-reboot.service @@ -0,0 +1,21 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[Unit] +Description=Show Plymouth Reboot Screen +After=getty@tty1.service prefdm.service +DefaultDependencies=no + +[Service] +ExecStart=/sbin/plymouthd --mode=shutdown +ExecStartPost=-/usr/bin/plymouth --sysinit +ExecStartPost=-/usr/bin/plymouth --show-splash +ExecStartPost=-/usr/bin/plymouth message '--text=Rebooting...' +Type=forking + +[Install] +WantedBy=reboot.target diff --git a/units/fedora/plymouth-shutdown.service b/units/fedora/plymouth-shutdown.service deleted file mode 100644 index da3acecd16..0000000000 --- a/units/fedora/plymouth-shutdown.service +++ /dev/null @@ -1,21 +0,0 @@ -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. - -[Unit] -Description=Show Plymouth Shutdown Screen -After=getty@tty1.service prefdm.service -DefaultDependencies=no - -[Service] -ExecStart=/sbin/plymouthd --mode=shutdown -ExecStartPost=-/usr/bin/plymouth --sysinit -ExecStartPost=-/usr/bin/plymouth --show-splash -ExecStartPost=-/usr/bin/plymouth message '--text=Shutting Down' -Type=forking - -[Install] -WantedBy=shutdown.target -- cgit v1.2.3-54-g00ecf