1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-22 09:57:34 +03:00

systemd: show status when run with plymouth, and don't start plymouth a second time when it is already running

This commit is contained in:
Lennart Poettering 2011-02-09 14:17:52 +01:00
parent 0658666bac
commit e1b2b49465
2 changed files with 11 additions and 0 deletions

View File

@ -985,6 +985,11 @@ int main(int argc, char *argv[]) {
if (parse_argv(argc, argv) < 0)
goto finish;
/* If Plymouth is being run make sure we show the status, so
* that there's something nice to see when people press Esc */
if (access("/dev/.systemd/plymouth", F_OK) >= 0)
arg_show_status = true;
if (arg_action == ACTION_HELP) {
retval = help();
goto finish;

View File

@ -12,7 +12,13 @@ Wants=systemd-ask-password-plymouth.path
After=systemd-vconsole-setup.service udev-settle.service
Before=systemd-ask-password-plymouth.service
# Dracut informs us with this flag file if plymouth is already running
ConditionPathExists=!/dev/.systemd/plymouth
[Service]
ExecStart=/sbin/plymouthd --mode=boot
ExecStartPost=-/bin/plymouth --show-splash
Type=forking
# Send SIGRTMIN+20 to systemd, i.e. enable status messages
ExecStartPost=-/usr/bin/kill -54 1