Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Added old style start/stop/status standard script to work with system… #64

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
$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',
$service_restart = '/etc/init.d/sonar restart',
$installroot = '/usr/local',
$home = undef,
$host = undef,
Expand Down Expand Up @@ -193,6 +197,10 @@
service { 'sonarqube':
ensure => running,
name => $service,
start => $service_start,
stop => $service_stop,
status => $service_status,
restart => $service_restart,
hasrestart => true,
hasstatus => true,
enable => true,
Expand Down