From: Lennart Poettering Date: Thu, 31 Mar 2011 02:26:40 +0000 (+0200) Subject: plymouth: use PID file to detect whether ply is running X-Git-Tag: v22~10 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=9408a2d295a312a5472345090e28e0502570494b plymouth: use PID file to detect whether ply is running --- diff --git a/TODO b/TODO index 215a73601..803c6a8ec 100644 --- a/TODO +++ b/TODO @@ -33,6 +33,10 @@ F15: * selinux issue http://people.gnome.org/~cosimoc/selinux.jpg +* do not print errors when random seed is not around + +* fix alsa mixer restore to not print error when no config is stored + Features: * Find a way to replace /var/run, /var/lock directories with diff --git a/src/util.c b/src/util.c index 5e101e441..a44fea09c 100644 --- a/src/util.c +++ b/src/util.c @@ -4189,7 +4189,7 @@ bool nulstr_contains(const char*nulstr, const char *needle) { } bool plymouth_running(void) { - return access("/run/initramfs/plymouth", F_OK) >= 0; + return access("/run/plymouth/pid", F_OK) >= 0; } static const char *const ioprio_class_table[] = { diff --git a/units/plymouth-start.service b/units/plymouth-start.service index 6ab51f32a..10d03c6c6 100644 --- a/units/plymouth-start.service +++ b/units/plymouth-start.service @@ -13,9 +13,9 @@ 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=!/run/initramfs/plymouth +ConditionPathExists=!/run/plymouth/pid [Service] -ExecStart=/sbin/plymouthd --mode=boot +ExecStart=/sbin/plymouthd --mode=boot --pid-file=/run/plymouth/pid ExecStartPost=-/bin/plymouth --show-splash Type=forking