plymouth: use PID file to detect whether ply is running

This commit is contained in:
Lennart Poettering 2011-03-31 04:26:40 +02:00
parent f695b3b09b
commit 9408a2d295
3 changed files with 7 additions and 3 deletions

4
TODO
View File

@ -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

View File

@ -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[] = {

View File

@ -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