Skip to content

Commit

Permalink
Ensure webhook run folder exists on redhat systemd environments
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
luisfdez committed Feb 23, 2017
1 parent ee29b91 commit c72f0d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/webhook.redhat.service.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c72f0d7

Please sign in to comment.