mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-25 11:22:30 +01:00
31 lines
705 B
Plaintext
31 lines
705 B
Plaintext
#!/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() {
|
|
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 $?
|
|
}
|