summaryrefslogtreecommitdiffstats
path: root/fluent-bit/cpack/macos
diff options
context:
space:
mode:
Diffstat (limited to 'fluent-bit/cpack/macos')
-rw-r--r--fluent-bit/cpack/macos/fluent-bit.plist.cmakein18
-rw-r--r--fluent-bit/cpack/macos/welcome.txt.cmakein19
2 files changed, 37 insertions, 0 deletions
diff --git a/fluent-bit/cpack/macos/fluent-bit.plist.cmakein b/fluent-bit/cpack/macos/fluent-bit.plist.cmakein
new file mode 100644
index 000000000..70d2b6baa
--- /dev/null
+++ b/fluent-bit/cpack/macos/fluent-bit.plist.cmakein
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>KeepAlive</key>
+ <true/>
+ <key>Label</key>
+ <string>io.fluentbit.@FLB_OUT_NAME@</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>@CMAKE_INSTALL_FULL_BINDIR@/@FLB_OUT_NAME@</string>
+ <string>--config</string>
+ <string>@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_SYSCONFDIR@/@FLB_OUT_NAME@/@FLB_OUT_NAME@.conf</string>
+ </array>
+ <key>RunAtLoad</key>
+ <true/>
+</dict>
+</plist>
diff --git a/fluent-bit/cpack/macos/welcome.txt.cmakein b/fluent-bit/cpack/macos/welcome.txt.cmakein
new file mode 100644
index 000000000..d92b49094
--- /dev/null
+++ b/fluent-bit/cpack/macos/welcome.txt.cmakein
@@ -0,0 +1,19 @@
+This will install @FLB_OUT_NAME@ on your Mac.
+
+--------------------------------------------------
+
+Thank you for trying @FLB_OUT_NAME@! Have a fantastic day!
+
+You can start / stop @FLB_OUT_NAME@ via launchctl command.
+
+- start @FLB_OUT_NAME@
+
+% sudo launchctl load /Library/LaunchDaemons/@FLB_OUT_NAME@.plist
+
+- stop @FLB_OUT_NAME@
+
+% sudo launchctl unload /Library/LaunchDaemons/@FLB_OUT_NAME@.plist
+
+If you have a question, please ask it on Fluent Bit Community Forum:
+
+https://github.com/fluent/fluent-bit/discussions