repo.or.cz
/
k0tyk.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Script xinetd launch
[k0tyk.git]
/
xinetd
blob
a0bb7ee2108445999647e9577c1c69b9c1f709fe
1
#!/bin/sh
2
# Serve using xinetd as unprivileged user.
3
# 0BSD 2020 k0tyk <k0tyk@pm.me>
4
f
=
`mktemp`
;
trap
'rm
$f
'
EXIT
; >
$f
echo
"service http
5
{
6
env = HOME=
$PWD
7
port =
${PORT:-8080}
8
protocol = tcp
9
server = `command -v qjs`
10
server_args =
$PWD
/k0tyk.mjs
11
socket_type = stream
12
type = UNLISTED
13
user =
$USER
14
wait = no
15
}"
;
xinetd
-dontfork -f
$f