From 5de30f7cf582ccc349ec985b093e4717276b819a Mon Sep 17 00:00:00 2001 From: Alex Crowe Date: Thu, 31 Oct 2013 15:57:19 +0000 Subject: [PATCH] fixed issue on debian wheezy with symlinked /run -> /var/run being removed --- manifests/config.pp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/manifests/config.pp b/manifests/config.pp index c93fff5..655cc5c 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -1,10 +1,18 @@ class supervisord::config inherits supervisord { - file { ["${config_include}", "${run_path}", "${log_path}"]: + file { ["${config_include}", "${log_path}"]: ensure => directory, owner => 'root', mode => '0755' } + unless $run_path == '/var/run' { + file { $run_path: + ensure => directory, + owner => 'root', + mode => '0755' + } + } + if $install_init { $osname = downcase($::osfamily)