From 7e9f66a7930a5f7b0753e7528769f6f27ce7aa0e Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Tue, 22 Mar 2016 18:02:50 +0200 Subject: [PATCH] Fix log file permissions on RHEL-like systems --- templates/default/sysvinit.service.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/default/sysvinit.service.erb b/templates/default/sysvinit.service.erb index 382b0158..c861ee3f 100755 --- a/templates/default/sysvinit.service.erb +++ b/templates/default/sysvinit.service.erb @@ -57,8 +57,8 @@ _start() { [ -x $exec ] || exit 5 umask 077 - touch $pidfile - chown $user $pidfile + touch $pidfile $logfile + chown $user $pidfile $logfile echo -n $"Starting <%= @name %>: " daemon \