50 lines
1.4 KiB
Smarty
50 lines
1.4 KiB
Smarty
<?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">
|
|
<!--
|
|
Gitea Actions runner launchd service — rendered from com.gitea.runner.plist.tpl
|
|
Variables: RUNNER_NAME, RUNNER_DATA_PATH, RUNNER_PLIST_USERNAME_BLOCK
|
|
Installed by manage_runner.sh (add_native_runner):
|
|
boot=false → ~/Library/LaunchAgents/ (starts at login, no sudo)
|
|
boot=true → /Library/LaunchDaemons/ (starts at boot, requires sudo)
|
|
|
|
Log rotation: logs are rotated daily, keeping 5 archives (50 MB max each).
|
|
The companion newsyslog config is installed alongside this plist.
|
|
-->
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>Label</key>
|
|
<string>com.gitea.runner.${RUNNER_NAME}</string>
|
|
|
|
<key>ProgramArguments</key>
|
|
<array>
|
|
<string>${RUNNER_DATA_PATH}/act_runner</string>
|
|
<string>daemon</string>
|
|
<string>--config</string>
|
|
<string>${RUNNER_DATA_PATH}/config.yaml</string>
|
|
</array>
|
|
|
|
<key>WorkingDirectory</key>
|
|
<string>${RUNNER_DATA_PATH}</string>
|
|
|
|
<key>RunAtLoad</key>
|
|
<true/>
|
|
|
|
<key>KeepAlive</key>
|
|
<true/>
|
|
|
|
${RUNNER_PLIST_USERNAME_BLOCK}
|
|
<key>StandardOutPath</key>
|
|
<string>${RUNNER_DATA_PATH}/runner.out.log</string>
|
|
|
|
<key>StandardErrorPath</key>
|
|
<string>${RUNNER_DATA_PATH}/runner.err.log</string>
|
|
|
|
<key>EnvironmentVariables</key>
|
|
<dict>
|
|
<key>PATH</key>
|
|
<string>/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
|
|
</dict>
|
|
</dict>
|
|
</plist>
|