An example of launchd configuration files for WireGuard on macOS.
To start WireGuard at system startup, you should put com.example.wg.connectOnStartup.wg1.plist
in /Library/LaunchDaemons/
folder. Note that on MacBooks, it looks like Global Daemons (aka scripts in /Library/LaunchDaemons/
) are not loaded until a user login into an account.