summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/distcc/files
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-01-17 00:51:12 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-28 00:52:31 +0000
commit7c098b4a62c2855a321e9db893531006ff2da6e5 (patch)
tree37d5a5304ef0898d5626d6ddd77223213540c6d1 /meta/recipes-devtools/distcc/files
parentdbfcfbfeb28a3257c629e6ebaf3399da4b7aa087 (diff)
downloadpoky-7c098b4a62c2855a321e9db893531006ff2da6e5.tar.gz
distcc: add systemd support
Add systemd support for distcc. These unit files mainly use the same files in Fedora 20 as a reference. [YOCTO #4420] (From OE-Core rev: baae0b0e8786e26b60e17c4febd57ca1915f1e55) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/distcc/files')
-rw-r--r--meta/recipes-devtools/distcc/files/default5
-rw-r--r--meta/recipes-devtools/distcc/files/distccd.service11
2 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-devtools/distcc/files/default b/meta/recipes-devtools/distcc/files/default
index 95290f8488..63c4159b9d 100644
--- a/meta/recipes-devtools/distcc/files/default
+++ b/meta/recipes-devtools/distcc/files/default
@@ -17,3 +17,8 @@ STARTDISTCC="true"
17# ALLOWEDNETS="127.0.0.1" 17# ALLOWEDNETS="127.0.0.1"
18 18
19ALLOWEDNETS="192.168.7.0/24" 19ALLOWEDNETS="192.168.7.0/24"
20
21#
22# OPTIONS is used for the systemd service file
23#
24OPTIONS="--allow 192.168.7.0/24"
diff --git a/meta/recipes-devtools/distcc/files/distccd.service b/meta/recipes-devtools/distcc/files/distccd.service
new file mode 100644
index 0000000000..0253ddf52a
--- /dev/null
+++ b/meta/recipes-devtools/distcc/files/distccd.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Distccd A Distributed Compilation Server
3After=network.target
4
5[Service]
6User=distcc
7EnvironmentFile=-/etc/default/distcc
8ExecStart=@BINDIR@/distccd --verbose --no-detach --daemon $OPTIONS
9
10[Install]
11WantedBy=multi-user.target