moth/packages/mcp/service/tokend/run

21 lines
370 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-03-08 23:06:21 -07:00
ip addr add 10.0.0.2/16 label eth0:mcp dev eth0
2011-02-03 07:31:42 -07:00
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
2011-02-09 15:31:15 -07:00
cat /opt/*/tokens.txt >$DB 2>/dev/null
2010-10-25 17:17:10 -06:00
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