Closed michelcrypt4d4mus closed 1 year ago
Hi @michelcrypt4d4mus,
These are really cool. Thank you so much for sharing them. I am pondering where we should put them. I like the idea of a build_scripts
directory.
Also we always are so happy to have folks contributing, please can you email me at jay [at] thinkst [dot] com
.
These are two scripts I created when I was setting up OpenCanary as a macOS launchctl service; figured they might be worth sharing. If not feel free to close the PR. They're both in a
build_scripts/
dir though i'm happy to move them (or make whatever other tweaks).build_opencanary.sh
bash script to build opencanary and its prerequisites from source. Follows the instructions in the README with special handling for macOS/homebrew setups. Platform agnostic^1 though non macOS systems may need to configure the compile flags.
Script STDOUT Output
generate_macOS_launchctl_service_files.py
Python script to generate a
.plist
file andopencanary.conf
to enablelaunchctl
to manageopencanaryd
as a system daemon. The script writes tmp files to alaunchctl/
dir off the repo root. One of the generated files is a bootstrap script that actually sets up the service. It must be run withsudo
separately after this script because only root can setup LaunchDaemons on macOS.--help output
Script STDOUT Output
Generated Service
.plist
FileGenerated Bootstrap Script