Ignore:
Timestamp:
Dec 17, 2009, 10:07:05 PM (10 years ago)
Author:
broder
Message:

Run git-daemon as an inetd service instead of a separate daemon.

git-daemon doesn't run well under daemon(1), because it forks a child
(without detaching) that does all of its work, and killing the parent
doesn't kill the child.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dev/debian/invirt-dev.init

    r2635 r2636  
    3838    invirt-build-conf || ret=2
    3939
    40     daemon -n invirt-dev-git-daemon -- git daemon \
    41         --user=git \
    42         --group=nogroup \
    43         --syslog \
    44         --verbose \
    45         --reuseaddr \
    46         --export-all \
    47         --base-path=/srv/git \
    48         /srv/git || ret=$?
    49 
    5040    return $ret
    5141}
     
    5343do_stop()
    5444{
    55     daemon -n invirt-dev-git-daemon --stop
    56     return $?
     45    :
    5746}
    5847
Note: See TracChangeset for help on using the changeset viewer.