diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-04-01 00:10:04 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-04-01 00:33:20 +0200 |
commit | ef745b4cb4eb7163ad3ef16c0b38ac9b2f8e5716 (patch) | |
tree | 285d05f9a47e9a6e6ca90be5ea908b1964789117 /main/git/git-daemon.initd | |
parent | 4610df1f94759fea8fc86fe13f86fae977033aa0 (diff) | |
download | aports-ef745b4cb4eb7163ad3ef16c0b38ac9b2f8e5716.tar.bz2 aports-ef745b4cb4eb7163ad3ef16c0b38ac9b2f8e5716.tar.xz |
main/git: update OpenRC service files from Gentoo
Diffstat (limited to 'main/git/git-daemon.initd')
-rw-r--r-- | main/git/git-daemon.initd | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/main/git/git-daemon.initd b/main/git/git-daemon.initd index cb765bdf2b..b6ecfd9c50 100644 --- a/main/git/git-daemon.initd +++ b/main/git/git-daemon.initd @@ -1,30 +1,13 @@ -#!/sbin/openrc-run -# Copyright 1999-2008 Gentoo Foundation +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/files/git-daemon.initd,v 1.1 2010/03/17 15:13:27 sping Exp $ +# $Id$ -PIDFILE=/var/run/git-daemon.pid +pidfile="/var/run/git-daemon.pid" +command="/usr/bin/git" +command_args="daemon ${GITDAEMON_OPTS}" +start_stop_daemon_args="-e HOME= -e XDG_CONFIG_HOME= -b -m -p ${pidfile} -u ${GIT_USER:-nobody}:${GIT_GROUP:-nobody}" depend() { - need net use logger } - -start() { - ebegin "Starting git-daemon" - start-stop-daemon --start --quiet --background \ - --env HOME=${GIT_HOME:-/var/git} \ - --pidfile ${PIDFILE} \ - --exec /usr/bin/git -- daemon \ - --pid-file=${PIDFILE} \ - --user=${GIT_USER} --group=${GIT_GROUP} \ - ${GITDAEMON_OPTS} - eend $? -} - -stop() { - ebegin "Stopping git-daemon" - start-stop-daemon --stop --quiet \ - --pidfile ${PIDFILE} - eend $? -} |