summaryrefslogtreecommitdiff
path: root/examples/var_service/httpd/run
blob: ff8869b8a0f6adde8f1ed980a398cb009522352d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

#exec >/dev/null
exec 2>&1
exec </dev/null

user=www
user=root

echo "* Starting tcpsvd for httpd [$$]"
exec \
env - PATH="$PATH" \
softlimit \
tcpsvd \
  -v -E -l localhost -c 5 \
  0 88 \
setuidgid "$user" \
httpd -vvv -i -h /pub/httpd_root