moth/packages/mcp/service/tokend/run

19 lines
317 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
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