forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For Deb and Rpm installations. This makes it easy to run the Beat in foreground, while still being executed with the write paths. Part of elastic#1371.
- Loading branch information
Tudor Golubenco
committed
Apr 21, 2016
1 parent
8183cf2
commit f55139a
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