summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Strauss <Markus@ITstrauss.eu>2011-11-01 12:01:25 -0400
committerMarkus Strauss <Markus@ITstrauss.eu>2011-11-01 12:01:25 -0400
commita95b2e0534386d723fa4375745f34cdd665d972a (patch)
treefd8afb381832e7ab386583c1916edfc632103e3e
parent4725e08f1872d914c258ef0159389c76dba97f31 (diff)
downloadpuppet-runit-a95b2e0534386d723fa4375745f34cdd665d972a.tar.gz
puppet-runit-a95b2e0534386d723fa4375745f34cdd665d972a.tar.bz2
/usr/bin/test needs full path
-rw-r--r--manifests/service/enabled.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/service/enabled.pp b/manifests/service/enabled.pp
index 1897e69..234d3ab 100644
--- a/manifests/service/enabled.pp
+++ b/manifests/service/enabled.pp
@@ -24,7 +24,7 @@ define runit::service::enabled( $ensure = present, $timeout ) {
# last command is true, so this resource never fails
command => "/usr/bin/sv -w ${timeout} force-restart /etc/sv/${name}; true",
# we desperately need the supervise directory to restart a service
- onlyif => "test -d '/etc/sv/${name}'/supervise",
+ onlyif => "/usr/bin/test -d '/etc/sv/${name}'/supervise",
refreshonly => true,
}
@@ -43,7 +43,7 @@ define runit::service::enabled( $ensure = present, $timeout ) {
# then the supervise directory need to be created (automically) by runit
command => "/usr/bin/sv -w ${timeout} force-shutdown /etc/sv/${name}; true",
# when "/etc/sv/${name}" is not there, do not exec
- onlyif => "test -d '/etc/sv/${name}'",
+ onlyif => "/usr/bin/test -d '/etc/sv/${name}'",
}
# if we have users/groups, we need to remove them AFTER stopping the server