File: start.sh

package info (click to toggle)
hg-git 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,372 kB
  • sloc: python: 8,708; sh: 185; makefile: 23
file content (26 lines) | stat: -rwxr-xr-x 496 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

# for each daemon, we take care to ensure that all logging happens to
# stdout & stderr

# start the fcgi daemon
/usr/bin/spawn-fcgi \
    -u git -U git -n \
    -d /srv \
    -s /run/git.socket \
    /usr/bin/fcgiwrap &

# start the simple daemon
git daemon \
    --export-all \
    --user=git \
    --base-path=/srv \
    /srv &

# start nginx
/usr/sbin/nginx \
    -c /git-server/nginx.conf &

# finally, start ssh
# -D flag avoids executing sshd as a daemon
exec /usr/sbin/sshd -D