projects
/
invirt/packages/invirt-dev.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Run git-daemon as an inetd service instead of a separate daemon.
[invirt/packages/invirt-dev.git]
/
debian
/
invirt-dev.init
diff --git
a/debian/invirt-dev.init
b/debian/invirt-dev.init
index
5f85efe
..
372d8f2
100755
(executable)
--- a/
debian/invirt-dev.init
+++ b/
debian/invirt-dev.init
@@
-28,31
+28,21
@@
do_start()
ret=0
gen_files || ret=2
ret=0
gen_files || ret=2
- chown -R repository:nogroup /srv/repository/db \
- /srv/repository/dists \
- /srv/repository/lists \
- /srv/repository/pool
+ for d in db dists lists pool; do
+ dir="/srv/repository/$d"
+ mkdir -p "$dir"
+ chown -R repository:nogroup "$dir"
+ done
reprepro-env export || ret=2
invirt-build-conf || ret=2
reprepro-env export || ret=2
invirt-build-conf || ret=2
- daemon -n invirt-dev-git-daemon -- git daemon \
- --user=git \
- --group=nogroup \
- --syslog \
- --verbose \
- --reuseaddr \
- --export-all \
- --base-path=/srv/git \
- /srv/git || ret=$?
-
return $ret
}
do_stop()
{
return $ret
}
do_stop()
{
- daemon -n invirt-dev-git-daemon --stop
- return $?
+ :
}
do_reload()
}
do_reload()