diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-06-27 11:36:23 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-06-27 11:36:23 +0300 |
commit | 6a4f97aa9e759afd3a413edeb604d6ab26a1b181 (patch) | |
tree | 6a53346f41076c81de42fea2b1e34be6365b7c34 /packages/sys-devel/distcc/files/3.2/init | |
parent | d8c549ad7c2ad7d3e542bb6241ffbee2c815209f (diff) |
distcc-scm added
Diffstat (limited to 'packages/sys-devel/distcc/files/3.2/init')
-rw-r--r-- | packages/sys-devel/distcc/files/3.2/init | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/packages/sys-devel/distcc/files/3.2/init b/packages/sys-devel/distcc/files/3.2/init new file mode 100644 index 0000000..783c065 --- /dev/null +++ b/packages/sys-devel/distcc/files/3.2/init @@ -0,0 +1,32 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net + use avahi-daemon ypbind +} + +start() { + ebegin "Starting distccd" + + if [ ! -e /var/run/distccd ] ; then + mkdir -p /var/run/distccd + chown distcc:daemon /var/run/distccd + fi + + # Load PATH and GCC_SPECS from gcc-config, bug #262773 + eval "$(gcc-config -E)" + + start-stop-daemon --start --quiet --exec "${DISTCCD_EXEC}" --user distcc -- \ + --daemon --pid-file "${DISTCCD_PIDFILE}" \ + ${DISTCCD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping distccd" + start-stop-daemon --stop --quiet --pidfile "${DISTCCD_PIDFILE}" + eend $? +} |