Skip to content

Commit d268e4c

Browse files
authored
Merge pull request #336 from davemcdonnell/fix_solaris_service_provider
2 parents 3ffec12 + 6e8ac8c commit d268e4c

File tree

1 file changed

+6
-0
lines changed
  • manifests/forwarder/service

1 file changed

+6
-0
lines changed

manifests/forwarder/service/nix.pp

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121

2222
$user_args = "-user ${splunk::forwarder::splunk_user}"
2323

24+
if $facts['kernel'] == 'SunOS' {
25+
Service[$splunk::forwarder::service_name] {
26+
provider => 'init',
27+
}
28+
}
29+
2430
# This will fail if the unit file already exists. Splunk does not remove
2531
# unit files during uninstallation, so you may be required to manually
2632
# remove existing unit files before re-installing and enabling boot-start.

0 commit comments

Comments
 (0)