From: mrbond Date: Fri, 17 Sep 2010 06:50:56 +0000 (-0700) Subject: Updated page to reflect linux script (flock instead of lockfile) X-Git-Url: https://gitweb.dragonflybsd.org/ikiwiki.git/commitdiff_plain/22139cf63d24fcc5ffd32b7d6096ce508559a861 Updated page to reflect linux script (flock instead of lockfile) --- diff --git a/docs/howtos/How_to_mirror_DragonFly_with_Git/index.mdwn b/docs/howtos/How_to_mirror_DragonFly_with_Git/index.mdwn index 27ccf57c..ac545f8e 100644 --- a/docs/howtos/How_to_mirror_DragonFly_with_Git/index.mdwn +++ b/docs/howtos/How_to_mirror_DragonFly_with_Git/index.mdwn @@ -59,12 +59,12 @@ A startup script should be provided via package-manager, or you can use a servic exec setuidgid gitlog git-daemon --export-all --verbose --base-path=/srv/git /srv/git -## Notes for Linux/Debian users +## Notes for Linux users -The update-repo script uses lockf(1), if this tool is not available to you, but you have lockfile(1), you can pull my workaround for lockfile(1). I say workaround, because it is not elegant - but it's the best I could think of at the time. To get this script, pull branch debian/linux from git://blazefire.danielbond.org/update-repo.git. +The update-repo script uses lockf(1), I've created a version that supports Linux too (uses flock(1)): git://blazefire.danielbond.org/update-repo.git. ### Crontab example
-0,20,40 * * * * repodir=/srv/git locktype=lockfile /srv/git/update-repo.git/update-git.sh
+0,20,40 * * * * repodir=/srv/git locktype=flock /srv/git/update-repo.git/update-git.sh