mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
service: never supervise ourselves
This commit is contained in:
parent
84e3543ef4
commit
406eaf930b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user