summaryrefslogtreecommitdiffstats
path: root/devel/distcc/files/distccd.sh.sample
blob: e3cc9ef635f8c5be9e2c41e6140ae9c1f49a0b8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: distccd
# REQUIRE: NETWORKING
# KEYWORD: FreeBSD shutdown

#
# Add the following lines to /etc/rc.conf to enable distccd:
#
# distccd_enable="YES"
#

distccd_enable="NO"
distccd_flags="--user distcc --daemon -P %%DISTCCD_PIDFILE%%"

. %%RC_SUBR%%

name=distccd
rcvar=`set_rcvar`

command=%%PREFIX%%/sbin/${name}
pidfile=%%DISTCCD_PIDFILE%%

load_rc_config ${name}
run_rc_command "$1"
OpenPOWER on IntegriCloud