Skip to content

Commit 5ac8386

Browse files
Fix: Elastic Agent is not enabled on SUSE after installation from RPM package (#8896) (#8909)
(cherry picked from commit 21e89cb) Co-authored-by: Michal Pristas <[email protected]>
1 parent 271b69d commit 5ac8386

File tree

12 files changed

+36
-697
lines changed

12 files changed

+36
-697
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Kind can be one of:
2+
# - breaking-change: a change to previously-documented behavior
3+
# - deprecation: functionality that is being removed in a later release
4+
# - bug-fix: fixes a problem in a previous version
5+
# - enhancement: extends functionality but does not break or fix existing behavior
6+
# - feature: new functionality
7+
# - known-issue: problems that we are aware of in a given version
8+
# - security: impacts on the security of a product or a user’s deployment.
9+
# - upgrade: important information for someone upgrading from a prior version
10+
# - other: does not fit into any of the other categories
11+
kind: bug-fix
12+
13+
# Change summary; a 80ish characters long description of the change.
14+
summary: Removed init.d support from RPM packages
15+
16+
# Long description; in case the summary is not enough to describe the change
17+
# this field accommodate a description without length limits.
18+
# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment.
19+
#description:
20+
21+
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
22+
component: elastic-agent
23+
24+
# PR URL; optional; the PR number that added the changeset.
25+
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
26+
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
27+
# Please provide it if you are adding a fragment for a different PR.
28+
pr: https://github.com/elastic/elastic-agent/pull/8896
29+
30+
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
31+
# If not present is automatically filled by the tooling with the issue linked to the PR number.
32+
issue: https://github.com/elastic/elastic-agent/issues/8840

dev-tools/mage/godaemon.go

Lines changed: 0 additions & 76 deletions
This file was deleted.

dev-tools/packaging/packages.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -285,18 +285,12 @@ shared:
285285
content: >
286286
{{ commit }}
287287
mode: 0644
288-
/usr/share/{{.BeatName}}/bin/{{.BeatName}}-god:
289-
source: build/golang-crossbuild/god-{{.GOOS}}-{{.Platform.Arch}}
290-
mode: 0755
291288
/usr/bin/{{.BeatName}}:
292289
template: '{{ elastic_beats_dir }}/dev-tools/packaging/templates/linux/elastic-agent.sh.tmpl'
293290
mode: 0755
294291
/lib/systemd/system/{{.BeatServiceName}}.service:
295292
template: '{{ elastic_beats_dir }}/dev-tools/packaging/templates/linux/elastic-agent.unit.tmpl'
296293
mode: 0644
297-
/etc/init.d/{{.BeatServiceName}}:
298-
template: '{{ elastic_beats_dir }}/dev-tools/packaging/templates/{{.PackageType}}/elastic-agent.init.sh.tmpl'
299-
mode: 0755
300294
/var/lib/{{.BeatName}}/data/{{.BeatName}}-{{agent_package_version}}{{snapshot_suffix}}-{{ commit_short }}/{{.BeatName}}{{.BinaryExt}}:
301295
source: build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}}
302296
mode: 0755
@@ -706,18 +700,12 @@ shared:
706700
/usr/share/{{.BeatName}}/kibana:
707701
source: _meta/kibana.generated
708702
mode: 0644
709-
/usr/share/{{.BeatName}}/bin/{{.BeatName}}-god:
710-
source: build/golang-crossbuild/god-{{.GOOS}}-{{.Platform.Arch}}
711-
mode: 0755
712703
/usr/bin/{{.BeatName}}:
713704
template: '{{ elastic_beats_dir }}/dev-tools/packaging/templates/linux/beatname.sh.tmpl'
714705
mode: 0755
715706
/lib/systemd/system/{{.BeatServiceName}}.service:
716707
template: '{{ elastic_beats_dir }}/dev-tools/packaging/templates/linux/systemd.unit.tmpl'
717708
mode: 0644
718-
/etc/init.d/{{.BeatServiceName}}:
719-
template: '{{ elastic_beats_dir }}/dev-tools/packaging/templates/{{.PackageType}}/init.sh.tmpl'
720-
mode: 0755
721709

722710
# MacOS pkg spec for community beats.
723711
- &macos_beat_pkg_spec

dev-tools/packaging/templates/deb/elastic-agent.init.sh.tmpl

Lines changed: 0 additions & 165 deletions
This file was deleted.

0 commit comments

Comments
 (0)