strawberry/packaging/macos/com.strawberry.daemon.plist
trvon c871362b5e
Package for macOS: launchd jobs, signing and install
packaging/macos/ holds the ES entitlement and two LaunchDaemons: the
scanner (root, group strawberry, umask 027, XDG_DATA_HOME=/var/db so
evidence lands in /var/db/strawberry) and the rule updater (daily, and
on feeds/update-requested like strawberry-update.path).
scripts/macos_install.sh creates the group with dseditgroup, the
config (/run paths moved to /var/run), state directories, signs the
binary with the entitlement and bootstraps both jobs.

make macos-sign (IDENTITY=- ad hoc, or a Developer ID), make
macos-install, and make macos-live-tests (signs and runs
macos_es_live under sudo). An ad hoc signature carries the ES
entitlement only with SIP disabled; the install script says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 20:53:27 -06:00

42 lines
1.3 KiB
Text

<?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">
<!-- Strawberry scanner daemon (macOS counterpart of scripts/strawberry.service). -->
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.strawberry.daemon</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/strawberry</string>
<string>/etc/strawberry/strawberry.conf</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<!-- Evidence lives in /var/db/strawberry (db_path left empty in the config). -->
<key>XDG_DATA_HOME</key>
<string>/var/db</string>
</dict>
<key>UserName</key>
<string>root</string>
<!-- Socket and evidence are group-owned by `strawberry` (app access). -->
<key>GroupName</key>
<string>strawberry</string>
<key>Umask</key>
<integer>23</integer>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>ThrottleInterval</key>
<integer>10</integer>
<key>ProcessType</key>
<string>Background</string>
<key>StandardOutPath</key>
<string>/var/log/strawberry.log</string>
<key>StandardErrorPath</key>
<string>/var/log/strawberry.log</string>
</dict>
</plist>