blob: ce0fc085398971355d6903983be60976f5862ed1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#! /bin/sh
#
# $FreeBSD$
#
# PROVIDE: git_daemon
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable git_daemon:
#
#git_daemon_enable="YES"
. /etc/rc.subr
name="git_daemon"
rcvar="git_daemon_enable"
load_rc_config $name
: ${git_daemon_user:=git_daemon}
: ${git_daemon_group:=git_daemon}
: ${git_daemon_enable:=NO}
: ${git_daemon_directory:=%%PREFIX%%/git}
: ${git_daemon_flags:=--syslog --reuseaddr --detach}
command="%%PREFIX%%/libexec/git-core/git-daemon"
command_args="${git_daemon_directory}"
PATH="${PATH}:%%PREFIX%%/libexec/git-core"
run_rc_command "$1"
|