From 724ffa0b1597ba9e878ef1457e1c4537d0a8a801 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Fri, 27 Apr 2018 18:27:24 -0400 Subject: [PATCH] Fix zuul systemd files Our current systemd unit files do not work with type=forking, it does work with type=simple. This also means we can drop the PIDFile, as it is only used by forking. Change-Id: Ia9a2e54b91e9b2430c612b2edfa07077f7248539 Signed-off-by: Paul Belanger --- etc/zuul-executor.service | 3 +-- etc/zuul-scheduler.service | 3 +-- etc/zuul-web.service | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/etc/zuul-executor.service b/etc/zuul-executor.service index d9fbdebe02..e558e1122c 100644 --- a/etc/zuul-executor.service +++ b/etc/zuul-executor.service @@ -3,13 +3,12 @@ Description=Zuul Executor Service After=syslog.target network.target [Service] -Type=forking +Type=simple Group=zuul User=zuul RuntimeDirectory=zuul ExecStart=/usr/local/bin/zuul-executor ExecStop=/usr/local/bin/zuul-executor stop -PIDFile=/var/run/zuul/executor.pid [Install] WantedBy=multi-user.target diff --git a/etc/zuul-scheduler.service b/etc/zuul-scheduler.service index 826826fa10..0213daa271 100644 --- a/etc/zuul-scheduler.service +++ b/etc/zuul-scheduler.service @@ -3,13 +3,12 @@ Description=Zuul Scheduler Service After=syslog.target network.target [Service] -Type=forking +Type=simple Group=zuul User=zuul RuntimeDirectory=zuul ExecStart=/usr/local/bin/zuul-scheduler ExecStop=/usr/local/bin/zuul-scheduler stop -PIDFile=/var/run/zuul/scheduler.pid [Install] WantedBy=multi-user.target diff --git a/etc/zuul-web.service b/etc/zuul-web.service index 20594e30f7..85bca51afb 100644 --- a/etc/zuul-web.service +++ b/etc/zuul-web.service @@ -3,13 +3,12 @@ Description=Zuul Web Service After=syslog.target network.target [Service] -Type=forking +Type=simple Group=zuul User=zuul RuntimeDirectory=zuul ExecStart=/usr/local/bin/zuul-web ExecStop=/usr/local/bin/zuul-web stop -PIDFile=/var/run/zuul/web.pid [Install] WantedBy=multi-user.target