Bug 148337 - devel/git rc.d script issue (git_daemon)
Summary: devel/git rc.d script issue (git_daemon)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wesley Shields
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-03 08:40 UTC by Marin Atanasov
Modified: 2010-07-04 19:51 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. :)