From 460d2e6a8d9c337a8450206f004be195ffb43607 Mon Sep 17 00:00:00 2001 From: Riccardo Capecchi Date: Fri, 19 Feb 2016 14:19:22 +0100 Subject: [PATCH 1/2] Added old style start/stop/status standard script to work with systemd provider --- manifests/init.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 3a96b781..961a5f47 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -17,6 +17,9 @@ $group = 'sonar', $user_system = true, $service = 'sonar', + $service_start = '/etc/init.d/sonar start', + $service_stop = '/etc/init.d/sonar stop', + $service_status = '/etc/init.d/sonar status', $installroot = '/usr/local', $home = undef, $host = undef, @@ -193,6 +196,9 @@ service { 'sonarqube': ensure => running, name => $service, + start => $service_start, + stop => $service_stop, + status => $service_status, hasrestart => true, hasstatus => true, enable => true, From 6da5f127e5d4317969402b4d3e6b6c7f61576a39 Mon Sep 17 00:00:00 2001 From: Riccardo Capecchi Date: Fri, 19 Feb 2016 15:44:38 +0100 Subject: [PATCH 2/2] Forgot restart command --- manifests/init.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 961a5f47..2acf8db7 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -20,6 +20,7 @@ $service_start = '/etc/init.d/sonar start', $service_stop = '/etc/init.d/sonar stop', $service_status = '/etc/init.d/sonar status', + $service_restart = '/etc/init.d/sonar restart', $installroot = '/usr/local', $home = undef, $host = undef, @@ -199,6 +200,7 @@ start => $service_start, stop => $service_stop, status => $service_status, + restart => $service_restart, hasrestart => true, hasstatus => true, enable => true,