Mockup project containing experiments with packaging and installing custom
jobs or deamons on macOS. Tasks are performed with standard macOS tools:
pkgbuild
and installer
.
Build and install a mockup job which runs every minute and prints a timestamp in a log file.
make build
make install
Build a script-only (no payload) package which can be used to unload the LaunchDaemon and uninstall the job script and corresponding files (logs ecc.)
make build-uninstal
make uninstall
These tools are expeted to work fine on macOS 11.x.
Bootstraps a service or directory of services and respectively unloads a service or directory of services.
launchctl load /Library/LaunchDaemons/d76.mockup-job.plist
launchctl unload /Library/LaunchDaemons/d76.mockup-job.plist
Discard receipt data for the specified package.
pkgutil --forget d76.mockup-job
sudo launchctl kickstart system/d76.mockup-job
- man
pkgbuild
- man
installer
- man
pkgutil
- man
launchctl