Commit 9e6ad293 authored by Matt Wise's avatar Matt Wise
Browse files

Set hasstatus properly on the service based on the OS.

parent b644a065
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ class freeradius (
    name       => $freeradius::fr_service,
    require    => [Exec['radiusd-config-test'], File['radiusd.conf'], User[$freeradius::fr_user], Package[$freeradius::fr_package],],
    enable     => true,
    hasstatus  => true,
    hasstatus  => $freeradius::fr_service_has_status,
    hasrestart => true,
  }

+7 −0
Original line number Diff line number Diff line
@@ -22,6 +22,13 @@ class freeradius::params {
    default  => 'radiusd',
  }

  # Whether the FreeRADIUS init.d startup script has a status setting or not
  $fr_service_has_status = $::osfamily ? {
    'RedHat' => true,
    'Debian' => false,
    default  => false,
  }

  # Default base path for FreeRADIUS configs
  $fr_basepath = $::osfamily ? {
    'RedHat' => '/etc/raddb',