diff options
author | Markus Strauss <Markus@ITstrauss.eu> | 2011-11-01 11:46:42 -0400 |
---|---|---|
committer | Markus Strauss <Markus@ITstrauss.eu> | 2011-11-01 11:46:42 -0400 |
commit | 19187e304fa6eec4a37ae776f177289800cfa490 (patch) | |
tree | 7e464db04a597dd753e45cab194b802c72d6f5a0 /manifests/service.pp | |
parent | 384137fe6814498e87a07cc5b74ae2bcb59f895b (diff) | |
download | puppet-runit-19187e304fa6eec4a37ae776f177289800cfa490.tar.gz puppet-runit-19187e304fa6eec4a37ae776f177289800cfa490.tar.bz2 |
* modified the way the restart is done: force-restart instead of restart
* added the ability to disable the service
* added service restart/shutdown timeout parameter
* add require service restart for all users/groups
Diffstat (limited to 'manifests/service.pp')
-rw-r--r-- | manifests/service.pp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/service.pp b/manifests/service.pp index 0fed6d9..c5311fa 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -14,7 +14,8 @@ define runit::service ( # logging stuff $logger = true, # shall we setup an logging service; if you use 'command' before, # all output from command will be logged automatically to $logdir/current - $logdir = "${rundir}/log" + $logdir = "${rundir}/log", + $timeout = 7 # service restart/stop timeouts (only relevant for 'enabled' services) ) { # FixMe: Validate parameters |