1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 10:25:06 +03:00

service: never supervise ourselves

This commit is contained in:
Lennart Poettering 2010-06-15 19:47:13 +02:00
parent 84e3543ef4
commit 406eaf930b

View File

@ -936,6 +936,9 @@ static int service_load_pid_file(Service *s) {
if ((unsigned long) (pid_t) p != p)
return -ERANGE;
if (p <= 1)
return -ERANGE;
if (kill((pid_t) p, 0) < 0 && errno != EPERM) {
log_warning("PID %llu read from file %s does not exist. Your service or init script might be broken.",
(unsigned long long) p, s->pid_file);