Bug 148337

Summary: devel/git rc.d script issue (git_daemon)
Product: Ports & Packages Reporter: Marin Atanasov <dnaeon>
Component: Individual Port(s)Assignee: Wesley Shields <wxs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Marin Atanasov 2010-07-03 08:40:01 UTC
When you install devel/git if you enable git_daemon from rc.conf and reboot your machine, what happens is that a git_daemon process is started but it is not serving any incoming connections. Nothing is going to the logs as well.

If you run the script manually from /usr/local/etc/rc.d/git_daemon everything is working fine - serving incoming connections and logs everything.

NOTE: This is only not working when using the Git protocol, i.e when you do a:
 
 $ git clone git://git.example.com/repo.git

Using SSH for transport is working fine.

Haven't tested this if you are using some of the other transport protocols like HTTP or rsync.

How-To-Repeat: 1. Install devel/git
2. Add to your rc.conf

# Enable git-daemon
git_daemon_enable="YES"
git_daemon_directory="<git-repos-path>"
git_daemon_flags="--verbose --syslog --base-path=<git-repos-path> --detach --reuseaddr"

3. Reboot
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-07-03 08:40:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wxs

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Wesley Shields freebsd_committer freebsd_triage 2010-07-04 19:51:51 UTC
State Changed
From-To: open->closed

Sorry for the delay on this and thanks for opening a PR to remind me. I 
just committed a fix for this. :)