Skip to content

Commit

Permalink
only managing the service en/disabling if $enable==true
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Strauss authored and Markus Strauss committed Nov 1, 2011
1 parent 3543fd0 commit 67a3bcd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,10 @@
;
}

# eventually enabling the service
if $ensure == present and $enable == true {
$_ensure_enabled = present
} else {
$_ensure_enabled = absent
# eventually enabling/disabling the service
if $enable == true {
debug( "Service ${name}: ${_ensure_enabled}" )
runit::service::enabled { $name: ensure => $ensure, timeout => $timeout }
}

debug( "Service ${name}: ${_ensure_enabled}" )

runit::service::enabled { $name: ensure => $_ensure_enabled }
}

0 comments on commit 67a3bcd

Please sign in to comment.