aboutsummaryrefslogtreecommitdiffstats
path: root/main/git/git-daemon.initd
diff options
context:
space:
mode:
authorAndrew Manison <amanison@anselsystems.com>2011-02-16 19:14:26 +0000
committerAndrew Manison <amanison@anselsystems.com>2011-02-16 19:14:26 +0000
commit71e39ce025e46b17e9634cb8fdeec7af04f2f0fa (patch)
treeab6569d59ab7f79ae8cb7c677658f9ba12854069 /main/git/git-daemon.initd
parent01fd4f6611dd2b61cd8ceee01b4a454d74bbbc51 (diff)
parent692f71db5a7621fe29b255de3ef9ae973b74eacb (diff)
downloadaports-71e39ce025e46b17e9634cb8fdeec7af04f2f0fa.tar.bz2
aports-71e39ce025e46b17e9634cb8fdeec7af04f2f0fa.tar.xz
Merge branch 'master' of ssh://git.alpinelinux.org/gitroot/aports-amanison
Conflicts: main/iaxmodem/APKBUILD
Diffstat (limited to 'main/git/git-daemon.initd')
-rw-r--r--main/git/git-daemon.initd30
1 files changed, 30 insertions, 0 deletions
diff --git a/main/git/git-daemon.initd b/main/git/git-daemon.initd
new file mode 100644
index 0000000000..c6ee19f5c0
--- /dev/null
+++ b/main/git/git-daemon.initd
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2008 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 $
+
+PIDFILE=/var/run/git-daemon.pid
+
+depend() {
+ need net
+ use logger
+}
+
+start() {
+ [ -e /lib/librc.so ] || BL1_COMPAT="--name git-daemon"
+ ebegin "Starting git-daemon"
+ start-stop-daemon --start --quiet --background \
+ --pidfile ${PIDFILE} ${BL1_COMPAT} \
+ --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 $?
+}