Skip to content

Commit

Permalink
[docs] Use beatname_pkg variable to resolve package name (elastic#18423
Browse files Browse the repository at this point in the history
  • Loading branch information
dedemorton authored May 12, 2020
1 parent 247a84d commit b0dadd3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions libbeat/docs/shared-systemd.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ Use `systemctl` to start or stop {beatname_uc}:

["source", "sh", subs="attributes"]
------------------------------------------------
systemctl start {beatname_lc}
systemctl start {beatname_pkg}
------------------------------------------------

["source", "sh", subs="attributes"]
------------------------------------------------
systemctl stop {beatname_lc}
systemctl stop {beatname_pkg}
------------------------------------------------

By default, the {beatname_uc} service starts automatically when the system
boots. To enable or disable auto start use:

["source", "sh", subs="attributes"]
------------------------------------------------
systemctl enable {beatname_lc}
systemctl enable {beatname_pkg}
------------------------------------------------

["source", "sh", subs="attributes"]
------------------------------------------------
systemctl disable {beatname_lc}
systemctl disable {beatname_pkg}
------------------------------------------------


Expand All @@ -39,14 +39,14 @@ To get the service status, use `systemctl`:

["source", "sh", subs="attributes"]
------------------------------------------------
systemctl status {beatname_lc}
systemctl status {beatname_pkg}
------------------------------------------------

Logs are stored by default in journald. To view the Logs, use `journalctl`:

["source", "sh", subs="attributes"]
------------------------------------------------
journalctl -u {beatname_lc}.service
journalctl -u {beatname_pkg}.service
------------------------------------------------

[float]
Expand All @@ -64,10 +64,10 @@ override to change the default options.
|=======================================

To override these variables, create a drop-in unit file in the
+/etc/systemd/system/{beatname_lc}.service.d+ directory.
+/etc/systemd/system/{beatname_pkg}.service.d+ directory.

For example a file with the following content placed in
+/etc/systemd/system/{beatname_lc}.service.d/debug.conf+
+/etc/systemd/system/{beatname_pkg}.service.d/debug.conf+
would override `BEAT_LOG_OPTS` to enable debug for Elasticsearch output.

["source", "systemd", subs="attributes"]
Expand All @@ -82,9 +82,9 @@ the service:
["source", "sh", subs="attributes"]
------------------------------------------------
systemctl daemon-reload
systemctl restart {beatname_lc}
systemctl restart {beatname_pkg}
------------------------------------------------

NOTE: It is recommended that you use a configuration management tool to
include drop-in unit files. If you need to add a drop-in manually, use
+systemctl edit {beatname_lc}.service+.
+systemctl edit {beatname_pkg}.service+.

0 comments on commit b0dadd3

Please sign in to comment.