add more service examples
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
17
examples/var_service/inetd/run
Executable file
17
examples/var_service/inetd/run
Executable file
@@ -0,0 +1,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)
|
||||
Reference in New Issue
Block a user