summaryrefslogtreecommitdiff
path: root/manifests/service
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/service')
-rw-r--r--manifests/service/enabled.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/manifests/service/enabled.pp b/manifests/service/enabled.pp
index 1a71f4d..d750914 100644
--- a/manifests/service/enabled.pp
+++ b/manifests/service/enabled.pp
@@ -21,7 +21,9 @@ define runit::service::enabled( $ensure = present ) {
exec { "sv restart ${name}":
subscribe => File["/etc/service/${name}"],
- command => "/usr/bin/sv -w 60 restart /etc/sv/${name}",
+ # we wait a few seconds just in case this is the firstmost service activation
+ # then the supervise directory need to be created (automically) by runit
+ command => "/bin/sleep 3; /usr/bin/sv -w 60 restart /etc/sv/${name}",
refreshonly => true,
}