diff --git a/manifests/init.pp b/manifests/init.pp index 5450912085fad372c01918a0bebcb9c78887d261..d6557d55be9c10aa8f302baea31fdcac81ccda3c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -311,7 +311,7 @@ class freeradius ( create => false, missingok => true, compress => true, - postrotate => 'kill -HUP `cat /var/run/radiusd/radiusd.pid`', + postrotate => "kill -HUP `cat ${freeradius::fr_pidfile}`", sharedscripts => true, } @@ -322,7 +322,7 @@ class freeradius ( create => true, missingok => true, compress => true, - postrotate => 'kill -HUP `cat /var/run/radiusd/radiusd.pid`', + postrotate => "kill -HUP `cat ${freeradius::fr_pidfile}`", sharedscripts => true, } @@ -333,7 +333,7 @@ class freeradius ( create => true, missingok => true, compress => true, - postrotate => 'kill -HUP `cat /var/run/radiusd/radiusd.pid`', + postrotate => "kill -HUP `cat ${freeradius::fr_pidfile}`", sharedscripts => true, } diff --git a/manifests/params.pp b/manifests/params.pp index 75bae6e39800b63e2adb0cc63dc555839fbfef3d..2b147275c142beebb3eebd7acac7156c4e5fa98e 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -73,6 +73,9 @@ class freeradius::params { default => false, } + # Default pid file location + $fr_pidfile = "/var/run/${fr_service}/${fr_service}.pid" + # Default base path for FreeRADIUS configs $fr_basepath = $::osfamily ? { 'RedHat' => '/etc/raddb', diff --git a/manifests/sql.pp b/manifests/sql.pp index dcaeb97d44a544d9cff9c02aba8a023fa54630a8..28491868ae7b844fc82006adbb33b19aa5efd41d 100644 --- a/manifests/sql.pp +++ b/manifests/sql.pp @@ -127,7 +127,7 @@ define freeradius::sql ( create => true, compress => true, missingok => true, - postrotate => 'kill -HUP `cat /var/run/radiusd/radiusd.pid`', + postrotate => "kill -HUP `cat ${freeradius::fr_pidfile}`", } } }