You are not logged in.
Pages: 1
Git server stuff requires invocation of git-daemon, but when I type
git-daemonI get the response
bash: git-daemon: command not foundWhen I try to start git-daemon by typing
sudo /etc/rc.d/git-daemon startI get the response
:: Starting git-daemon daemon [FAIL]git-daemon is stopped as told by both
sudo /etc/rc.d/git-daemon statusand
rc.d listOf course I have git installed, and putting git-daemon under DAEMONS in rc.conf and rebooting does not help.
Offline
Git server stuff requires invocation of git-daemon, but when I type
git-daemonI get the response
bash: git-daemon: command not found
SYNPOSIS git daemon [...]
Last edited by guelfi (2012-05-05 21:55:54)
Offline
git daemon just starts program that does nothing,
the wiki entry on gitosis says you should invoke
sudo -u git git-daemon --base-path=/srv/gitosis/repositories/ --export-allOffline
the wiki entry on gitosis says you should invoke
sudo -u git git-daemon --base-path=/srv/gitosis/repositories/ --export-all
Well, the wiki entry on gitosis is, apparently, wrong. As you can see yourself, there is no binary named git-daemon in your PATH.
If you look into the init script you are trying to run (/etc/rc.d/git-daemon), you will see that it executes /usr/lib/git-core/git-daemon.
git daemonjust starts program that does nothing,
Of course it does nothing right away - it's a daemon, and while it's running, it should serve git repos if you request them from another host.
Last edited by guelfi (2012-05-05 22:18:42)
Offline
sudo -u git git daemon --base-path=/srv/gitosis/repositories/ --export-allDoes nothing either, other pages on the Internet, also use git-daemon.
But /etc/rc.d/git-daemon fails to start that should not happen, right.
Offline
Did you put the right repo in /etc/git-daemon.conf? For me, it works if I create /srv/git which is the default repo path.
Other pages on the internet using git-daemon doesn't make using git-daemon correct. Maybe Arch packages git differently than other distros and doesn't put git-daemon into the PATH.
On the "'git daemon' does nothing"-thing: If you knew what you are doing right now, you wouldn't expect "git daemon" to do anything on the console. Are you even familiar with the concept of a daemon?
If not, give this a read.
Offline
/etc/conf.d/git-daemon.conf contains
GIT_REPO="/srv/git/"
GIT_DAEMON_ARGS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"I know that I daemon is, but since I'm told to invoke git-daemon (or git daemon) I expect
the started program to at least exit.
Offline
bump
Offline
Why did you bump this thread? Do you still have any issue?
Offline
Yes, git-daemon files to start, both by
sudo /etc/rc.d/git-daemon start
and at boot when listed in rc.conf DAEMONS.
Offline
Pages: 1