-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added beatname.sh in /usr/bin (#1446)
For Deb and Rpm installations. This makes it easy to run the Beat in foreground, while still being executed with the write paths. * Fix postinst script * Added beatname.sh in /usr/bin Part of #1371.
- Loading branch information
Showing
6 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Script to run {.beat_name} in foreground with the same path settings that | ||
# the init script / systemd unit file would do. | ||
|
||
/usr/share/{{.beat_name}}/bin/{{.beat_name}} -e \ | ||
-c /etc/{{.beat_name}}/{{.beat_name}}.yml \ | ||
-path.home /usr/share/{{.beat_name}} \ | ||
-path.config /etc/{{.beat_name}} \ | ||
-path.data /var/lib/{{.beat_name}} \ | ||
$@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Script to run {.beat_name} in foreground with the same path settings that | ||
# the init script / systemd unit file would do. | ||
|
||
/usr/share/{{.beat_name}}/bin/{{.beat_name}} -e \ | ||
-c /etc/{{.beat_name}}/{{.beat_name}}.yml \ | ||
-path.home /usr/share/{{.beat_name}} \ | ||
-path.config /etc/{{.beat_name}} \ | ||
-path.data /var/lib/{{.beat_name}} \ | ||
$@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters