[systemd-commits] 2 commits - fixme Makefile.am man/systemctl.xml src/systemctl.c units/fedora

Lennart Poettering lennart at kemper.freedesktop.org
Thu Aug 12 17:19:34 PDT 2010


 Makefile.am                            |   20 +++++++++++++++-----
 fixme                                  |    6 ++----
 man/systemctl.xml                      |    7 +++++--
 src/systemctl.c                        |    2 +-
 units/fedora/plymouth-halt.service     |   21 +++++++++++++++++++++
 units/fedora/plymouth-poweroff.service |   21 +++++++++++++++++++++
 units/fedora/plymouth-reboot.service   |   21 +++++++++++++++++++++
 units/fedora/plymouth-shutdown.service |   21 ---------------------
 8 files changed, 86 insertions(+), 33 deletions(-)

New commits:
commit 0278dfeb30a1d1022501f5671c548283d7ee9387
Author: Lennart Poettering <lennart at poettering.net>
Date:   Fri Aug 13 02:19:24 2010 +0200

    unit: create three seperate plymouth service for halt/poweroff/reboot

diff --git a/Makefile.am b/Makefile.am
index 3d33e79..e4fcb43 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -195,7 +195,9 @@ dist_systemunit_DATA += \
 	units/fedora/sysinit.service \
 	units/fedora/single.service \
 	units/fedora/plymouth-quit.service \
-	units/fedora/plymouth-shutdown.service
+	units/fedora/plymouth-reboot.service \
+	units/fedora/plymouth-poweroff.service \
+	units/fedora/plymouth-halt.service
 endif
 
 if TARGET_SUSE
@@ -820,7 +822,9 @@ install-data-hook:
 if TARGET_FEDORA
 	$(MKDIR_P) -m 0755 \
 		$(DESTDIR)$(SYSTEM_SYSVINIT_PATH) \
-		$(DESTDIR)$(pkgsysconfdir)/system/shutdown.target.wants \
+		$(DESTDIR)$(pkgsysconfdir)/system/reboot.target.wants \
+		$(DESTDIR)$(pkgsysconfdir)/system/poweroff.target.wants \
+		$(DESTDIR)$(pkgsysconfdir)/system/halt.target.wants \
 		$(DESTDIR)$(systemunitdir)/rescue.target.wants
 	( cd $(DESTDIR)$(pkgsysconfdir)/system && \
 		rm -f display-manager.service && \
@@ -835,9 +839,15 @@ if TARGET_FEDORA
 	( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
 		rm -f single.service && \
 		$(LN_S) $(systemunitdir)/single.service single.service )
-	( cd $(DESTDIR)$(pkgsysconfdir)/system/shutdown.target.wants && \
-		rm -f plymouth-shutdown.service && \
-		$(LN_S) $(systemunitdir)/plymouth-shutdown.service plymouth-shutdown.service )
+	( cd $(DESTDIR)$(pkgsysconfdir)/system/reboot.target.wants && \
+		rm -f plymouth-reboot.service && \
+		$(LN_S) $(systemunitdir)/plymouth-reboot.service plymouth-reboot.service )
+	( cd $(DESTDIR)$(pkgsysconfdir)/system/poweroff.target.wants && \
+		rm -f plymouth-poweroff.service && \
+		$(LN_S) $(systemunitdir)/plymouth-poweroff.service plymouth-poweroff.service )
+	( cd $(DESTDIR)$(pkgsysconfdir)/system/halt.target.wants && \
+		rm -f plymouth-halt.service && \
+		$(LN_S) $(systemunitdir)/plymouth-halt.service plymouth-halt.service )
 	( cd $(DESTDIR)$(systemunitdir) && \
 		rm -f local.service && \
 		$(LN_S) rc-local.service local.service )
diff --git a/fixme b/fixme
index a525f08..10620dd 100644
--- a/fixme
+++ b/fixme
@@ -67,16 +67,14 @@
 
 * j->installed issue
 
-* plymouth boot.log
-
-* plymouth different shut down msgs
-
 * plymouth after/before getty?
 
 * be more forgiving when parsing unit files, when encountering incorrect lines with non assignments
 
 * ExecStart= mehrfach bei Type=finish
 
+* move runlevel symlinks to /lib
+
 External:
 
 * sysv functions should color when stdout is tty, not stdin
diff --git a/units/fedora/plymouth-halt.service b/units/fedora/plymouth-halt.service
new file mode 100644
index 0000000..9b77c5d
--- /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 at 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 0000000..538a0c5
--- /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 at 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 0000000..286c8ab
--- /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 at 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 da3acec..0000000
--- 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 at 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
commit 75676b7287c50b5e03ed0143c65b93d435ff8b6c
Author: Lennart Poettering <lennart at poettering.net>
Date:   Fri Aug 13 02:15:10 2010 +0200

    man: document new 'systemctl status PID' syntax

diff --git a/man/systemctl.xml b/man/systemctl.xml
index 6e4b203..1c5c884 100644
--- a/man/systemctl.xml
+++ b/man/systemctl.xml
@@ -357,7 +357,7 @@
                                 state to STDOUT.</para></listitem>
                         </varlistentry>
                         <varlistentry>
-                                <term><command>status [NAME...]</command></term>
+                                <term><command>status [NAME...|PID...]</command></term>
 
                                 <listitem><para>Show terse runtime
                                 status information about one or more
@@ -365,7 +365,10 @@
                                 generate human-readable output. If you
                                 are looking for computer-parsable
                                 output, use <command>show</command>
-                                instead.</para></listitem>
+                                instead. If a PID is passed
+                                information about the unit the process
+                                of the PID belongs to is
+                                shown.</para></listitem>
                         </varlistentry>
                         <varlistentry>
                                 <term><command>show [NAME...|JOB...]</command></term>
diff --git a/src/systemctl.c b/src/systemctl.c
index cf075ed..6d17649 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -3709,7 +3709,7 @@ static int systemctl_help(void) {
                "                                  otherwise restart if active\n"
                "  isolate [NAME]                  Start one unit and stop all others\n"
                "  is-active [NAME...]             Check whether units are active\n"
-               "  status [NAME...]                Show runtime status of one or more units\n"
+               "  status [NAME...|PID...]         Show runtime status of one or more units\n"
                "  show [NAME...|JOB...]           Show properties of one or more\n"
                "                                  units/jobs or the manager\n"
                "  reset-maintenance [NAME...]     Reset maintenance state for all, one,\n"


More information about the systemd-commits mailing list