From f8ec0b9d756dbe7fb360a3059231045e3d8acba5 Mon Sep 17 00:00:00 2001 From: Tails developers Date: Tue, 23 Oct 2012 16:14:31 +0200 Subject: Don't setup init script manually There is no need to exec `update-rc.d` manually, the service definition will take care of running it! --- manifests/inotify.pp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'manifests') diff --git a/manifests/inotify.pp b/manifests/inotify.pp index f3b8c62..45fcb7e 100644 --- a/manifests/inotify.pp +++ b/manifests/inotify.pp @@ -21,17 +21,11 @@ class reprepro::inotify inherits reprepro { content => template('reprepro/inoticoming.default.erb'), } - exec { "reprepro_init_script": - command => "/usr/sbin/update-rc.d reprepro defaults", - unless => "/bin/ls /etc/rc3.d/ | /bin/grep reprepro", - require => File["/etc/init.d/reprepro"], - } service { "reprepro": ensure => "running", pattern => "inoticoming.*reprepro.*processincoming", hasstatus => false, require => [File["/etc/default/reprepro"], - Exec["reprepro_init_script"], File["/etc/init.d/reprepro"] ], } } -- cgit v1.2.3