directory xml moved to common
[webkpasswd.git] / start.sh
blob5551a0cec5bf10ea9c38c0b604191ed3156b07ab
1 #!/bin/bash
3 PID="cherryd.pid"
4 LOG=""
5 CONFIG="webkpasswd.conf"
6 IMPORT="webkpasswd"
8 case "$1" in
9 -i)
10 IMPORT=$2
11 shift 2
13 -log)
14 LOG="-f >cherryd.log 2>&1 &"
15 shift
18 echo "unknown option"
20 esac
22 [ -f $PID ] && kill `cat $PID`
23 cherryd --config=$CONFIG --import=$IMPORT --pidfile=$PID $LOG