|
| 1 | +// tag::deb[] |
| 2 | + |
| 3 | +:beatname_url: {beats-ref-root}/{beatname_lc}/{branch} |
| 4 | + |
| 5 | +["source","sh",subs="attributes"] |
| 6 | +---- |
| 7 | +sudo service {beatname_pkg} start |
| 8 | +---- |
| 9 | + |
| 10 | +// tag::initd-note[] |
| 11 | +NOTE: If you use an `init.d` script to start {beatname_uc}, you can't specify command |
| 12 | +line flags (see {beatname_url}/command-line-options.html[Command reference]). To specify flags, start {beatname_uc} in |
| 13 | +the foreground. |
| 14 | + |
| 15 | +// end::initd-note[] |
| 16 | + |
| 17 | +Also see {beatname_url}/running-with-systemd.html[{beatname_uc} and systemd]. |
| 18 | +// end::deb[] |
| 19 | + |
| 20 | +// tag::rpm[] |
| 21 | +["source","sh",subs="attributes"] |
| 22 | +---- |
| 23 | +sudo service {beatname_pkg} start |
| 24 | +---- |
| 25 | + |
| 26 | +include::start.asciidoc[tag=initd-note] |
| 27 | + |
| 28 | +Also see {beatname_url}/running-with-systemd.html[{beatname_uc} and systemd]. |
| 29 | + |
| 30 | +// end::rpm[] |
| 31 | + |
| 32 | +// tag::mac[] |
| 33 | +["source","sh",subs="attributes,callouts"] |
| 34 | +---- |
| 35 | +./{beatname_lc} -e |
| 36 | +---- |
| 37 | +// end::mac[] |
| 38 | +
|
| 39 | +// tag::brew[] |
| 40 | +To have launchd start +elastic/tap/{beatname_lc}+ and then restart it at login, |
| 41 | +run: |
| 42 | +
|
| 43 | +["source","sh",subs="attributes"] |
| 44 | +----- |
| 45 | +brew services start elastic/tap/{beatname_lc}-full |
| 46 | +----- |
| 47 | + |
| 48 | +To run {beatname_uc} in the foreground instead of running it as a background |
| 49 | +service, run: |
| 50 | + |
| 51 | +["source","sh",subs="attributes"] |
| 52 | +----- |
| 53 | +{beatname_lc} -e |
| 54 | +----- |
| 55 | + |
| 56 | +// end::brew[] |
| 57 | + |
| 58 | +// tag::linux[] |
| 59 | + |
| 60 | +["source","sh",subs="attributes,callouts"] |
| 61 | +---- |
| 62 | +./{beatname_lc} -e |
| 63 | +---- |
| 64 | +
|
| 65 | +// end::linux[] |
| 66 | +
|
| 67 | +// tag::win[] |
| 68 | +["source","sh",subs="attributes"] |
| 69 | +---- |
| 70 | +PS C:{backslash}Program Files{backslash}{beatname_lc}> Start-Service {beatname_lc} |
| 71 | +---- |
| 72 | + |
| 73 | +By default, Windows log files are stored in +C:{backslash}ProgramData{backslash}{beatname_lc}\Logs+. |
| 74 | + |
| 75 | +// end::win[] |
0 commit comments