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

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

echo "* Starting inetd [$$]"
exec \
env - PATH="$PATH" \
softlimit \
inetd -f -e "$PWD/inetd.conf"

# inetd [-f] [-q len] [conf]
# -f      Run in foreground
# -e      Log to stderr (default is syslog)
# -q N    Set the size of the socket listen queue to N
#         (default: 128)