From ac38af297a68f63db37d866084dc1827a6c73f44 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Fri, 7 Nov 2014 15:37:42 +0100 Subject: [PATCH] start rc.local using service Getting rid of explicit /etc/init.d/ invocations as those may disappear. Signed-off-by: Helmut Grohne --- modules/debian-org/manifests/init.pp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/debian-org/manifests/init.pp b/modules/debian-org/manifests/init.pp index 265734269..9f3881047 100644 --- a/modules/debian-org/manifests/init.pp +++ b/modules/debian-org/manifests/init.pp @@ -251,7 +251,7 @@ class debian-org { file { '/etc/rc.local': mode => '0755', source => 'puppet:///modules/debian-org/rc.local', - notify => Exec['rc.local start'], + notify => Exec['service rc.local start'], } file { '/etc/dsa': ensure => directory, @@ -309,8 +309,7 @@ class debian-org { path => '/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin', refreshonly => true } - exec { 'rc.local start': - path => '/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin', + exec { 'service rc.local start': refreshonly => true } exec { 'init q': -- 2.20.1