moth/packages/mcp/service/tokend/run

21 lines
351 B
Plaintext
Raw Normal View History

2010-09-23 18:23:00 -06:00
#! /bin/sh
exec 2>&1
2010-10-22 09:36:28 -06:00
2011-02-03 07:31:42 -07:00
ip addr add 10.0.0.2/24 dev eth0
2010-10-25 17:17:10 -06:00
DB=/var/lib/ctf/tokens.db
if [ ! -f $DB ]; then
2010-10-25 17:17:10 -06:00
# Append any package-provided tokens
cat /opt/*/tokens >$DB 2>/dev/null
chown ctf $DB
fi
2010-10-22 09:36:28 -06:00
for fn in /var/lib/ctf/tokens.db /var/lib/ctf/claim.db; do
touch $fn
chown ctf $fn
done
2010-09-23 18:23:00 -06:00
exec tcpsvd -u ctf 0 1 /opt/mcp/bin/in.tokend