From c72f0d71a64f7c838fd2b80dd80ca0d87b185dd2 Mon Sep 17 00:00:00 2001 From: Luis Fernandez Alvarez Date: Thu, 22 Sep 2016 09:04:57 +0200 Subject: [PATCH] Ensure webhook run folder exists on redhat systemd environments On RHEL7, the /run directory is now used as a temporary file storage system (tmpfs), meaning that files there are lost after reboots. This parameter ensures that the folder is properly created when the service starts. --- templates/webhook.redhat.service.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/webhook.redhat.service.erb b/templates/webhook.redhat.service.erb index 81860312..f9da6099 100644 --- a/templates/webhook.redhat.service.erb +++ b/templates/webhook.redhat.service.erb @@ -5,6 +5,7 @@ After=syslog.target network.target [Service] Type=forking EnvironmentFile=-/etc/sysconfig/webhook +RuntimeDirectory=webhook User=<%= @user %> PIDFile=/var/run/webhook/webhook.pid TimeoutStartSec=90