Skip to content

Instantly share code, notes, and snippets.

@WeZZard
Last active April 30, 2023 04:10
Show Gist options
  • Save WeZZard/4cc3c4f276d9498bd86e479978d6bc77 to your computer and use it in GitHub Desktop.
Save WeZZard/4cc3c4f276d9498bd86e479978d6bc77 to your computer and use it in GitHub Desktop.
Changes to Homebrew distcc installation for being a compilation server.
[Unit]
Description=Homebrew generated unit for distcc
[Install]
WantedBy=default.target
[Service]
Type=simple
ExecStart=/opt/homebrew/opt/distcc/bin/distccd --allow 192.168.50.0/23 --daemon --no-detach
Restart=always
WorkingDirectory=/opt/homebrew/opt/distcc
<?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">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>homebrew.mxcl.distcc</string>
<key>LimitLoadToSessionType</key>
<array>
<string>Aqua</string>
<string>Background</string>
<string>LoginWindow</string>
<string>StandardIO</string>
<string>System</string>
</array>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/opt/distcc/bin/distccd</string>
<string>--allow</string>
<string>192.168.50.0/23</string>
<string>--daemon</string>
<string>--no-detach</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/opt/homebrew/opt/distcc</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment