diff options
author | Bill Nottingham <notting@redhat.com> | 2009-12-03 14:29:21 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2009-12-03 14:29:21 -0500 |
commit | 79b2b232cb34f7df3e440968240975e44c4b8fc7 (patch) | |
tree | 96897ba99159dc82592baddddf3d68e7eafb64ce /init/plymouth-shutdown.conf | |
parent | a0025d667ffc0ecd70c0da39a7a3fede56f71a2a (diff) | |
download | initscripts-79b2b232cb34f7df3e440968240975e44c4b8fc7.tar initscripts-79b2b232cb34f7df3e440968240975e44c4b8fc7.tar.gz initscripts-79b2b232cb34f7df3e440968240975e44c4b8fc7.tar.bz2 initscripts-79b2b232cb34f7df3e440968240975e44c4b8fc7.tar.xz initscripts-79b2b232cb34f7df3e440968240975e44c4b8fc7.zip |
Move to new upstart job location and file extension.
Diffstat (limited to 'init/plymouth-shutdown.conf')
-rw-r--r-- | init/plymouth-shutdown.conf | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/init/plymouth-shutdown.conf b/init/plymouth-shutdown.conf new file mode 100644 index 00000000..d76dbd3f --- /dev/null +++ b/init/plymouth-shutdown.conf @@ -0,0 +1,24 @@ +# plymouth-shutdown - put up shutdown splash +# +# This service triggers plymouth to put up a splash +# when leaving runlevel 5. + +start on stopped prefdm + +console output +script + set $(runlevel || true) + if [ "$2" != "0" ] && [ "$2" != "6" ]; then + exit 0 + fi + + /sbin/plymouthd --mode=shutdown || exit 1 + /bin/plymouth --sysinit + /bin/plymouth --show-splash + if [ "$2" = "0" ]; then + /bin/plymouth message --text="Shutting down..." + elif [ "$2" = "6" ]; then + /bin/plymouth message --text="Restarting..." + fi +end script + |