diff options
author | mh <mh@immerda.ch> | 2012-08-26 19:30:16 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-08-26 19:30:37 +0200 |
commit | eec0fdc63fb938c10ff3ca74a3d78215577acf06 (patch) | |
tree | fa11940c86db9cf0f361c13f37ea05b809854430 | |
parent | 32d3fa901b91a7814397965fd2b2eb01d30ad99a (diff) |
improve testing for service
-rw-r--r-- | manifests/openbsd.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/openbsd.pp b/manifests/openbsd.pp index 1df5a9e..7ef6d28 100644 --- a/manifests/openbsd.pp +++ b/manifests/openbsd.pp @@ -8,9 +8,9 @@ class puppet::openbsd inherits puppet::base { restart => '/bin/kill -HUP `/bin/cat /var/run/puppet/agent.pid`', stop => '/bin/kill `/bin/cat /var/run/puppet/agent.pid`', start => '/usr/local/bin/puppet agent', - hasstatus => false, + status => '/bin/test -f /var/run/puppet/agent.pid && /bin/ps aux -p `/bin/cat /var/run/puppet/agent.pid` > /dev/null', + hasstatus => true, hasrestart => false, - pattern => 'puppet agent', } openbsd::rc_local { 'puppetd': |