summaryrefslogtreecommitdiff
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:48:24 +0000
commitbaae0b0e8786e26b60e17c4febd57ca1915f1e55 (patch)
tree7109d40ffdc2662c335b7b3cc499173300b23f89 /meta/recipes-devtools/distcc/files
parent4379e6f3096c893db5fa6a0b4569a0440e4494fe (diff)
downloadopenembedded-core-baae0b0e8786e26b60e17c4febd57ca1915f1e55.tar.gz
openembedded-core-baae0b0e8786e26b60e17c4febd57ca1915f1e55.tar.bz2
openembedded-core-baae0b0e8786e26b60e17c4febd57ca1915f1e55.zip
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] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
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"
# ALLOWEDNETS="127.0.0.1"
ALLOWEDNETS="192.168.7.0/24"
+
+#
+# OPTIONS is used for the systemd service file
+#
+OPTIONS="--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 @@
+[Unit]
+Description=Distccd A Distributed Compilation Server
+After=network.target
+
+[Service]
+User=distcc
+EnvironmentFile=-/etc/default/distcc
+ExecStart=@BINDIR@/distccd --verbose --no-detach --daemon $OPTIONS
+
+[Install]
+WantedBy=multi-user.target