summaryrefslogtreecommitdiff
path: root/nonsystemd/distcc-openrc/distcc.confd
diff options
context:
space:
mode:
Diffstat (limited to 'nonsystemd/distcc-openrc/distcc.confd')
-rw-r--r--nonsystemd/distcc-openrc/distcc.confd41
1 files changed, 41 insertions, 0 deletions
diff --git a/nonsystemd/distcc-openrc/distcc.confd b/nonsystemd/distcc-openrc/distcc.confd
new file mode 100644
index 000000000..280caccd0
--- /dev/null
+++ b/nonsystemd/distcc-openrc/distcc.confd
@@ -0,0 +1,41 @@
+# /etc/conf.d/distccd: config file for /etc/init.d/distccd
+
+DISTCCD_OPTS=""
+
+# this is the distccd executable
+DISTCCD_EXEC="/usr/bin/distccd"
+
+# this is where distccd will store its pid file
+PIDDIR="/run/distccd"
+DISTCCD_PIDFILE="$PIDDIR/distccd.pid"
+
+# set this option to run distccd with extra parameters
+# Default port is 3632. For most people the default is okay.
+DISTCCD_OPTS="${DISTCCD_OPTS} --port 3632"
+
+# Logging
+# You can change some logging options here:
+# --log-file FILE
+# --log-level LEVEL [critical,error,warning, notice, info, debug]
+#
+# Leaving --log-file blank will log to syslog
+# example: --log-file /dev/null --log-level warning
+# example: --log-level critical
+
+DISTCCD_OPTS="${DISTCCD_OPTS} --log-level critical"
+
+# SECURITY NOTICE:
+# It is HIGHLY recommended that you use the --listen option
+# for increased security. You can specify an IP to permit connections
+# from or a CIDR mask
+# --listen accepts only a single IP
+# --allow is now mandatory as of distcc-2.18.
+# example: --allow 192.168.0.0/24
+# example: --allow 192.168.0.5 --allow 192.168.0.150
+# example: --listen 192.168.0.2
+DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.0.0/24"
+DISTCCD_OPTS="${DISTCCD_OPTS} --listen 192.168.0.2"
+
+# set this for niceness
+# Default is 15
+DISTCCD_OPTS="${DISTCCD_OPTS} -N 19"