repo.or.cz
/
webkpasswd.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
directory xml moved to common
[webkpasswd.git]
/
start.sh
blob
5551a0cec5bf10ea9c38c0b604191ed3156b07ab
1
#!/bin/bash
2
3
PID
=
"cherryd.pid"
4
LOG
=
""
5
CONFIG
=
"webkpasswd.conf"
6
IMPORT
=
"webkpasswd"
7
8
case
"
$1
"
in
9
-i
)
10
IMPORT
=
$2
11
shift
2
12
;;
13
-log
)
14
LOG
=
"-f >cherryd.log 2>&1 &"
15
shift
16
;;
17
*)
18
echo
"unknown option"
19
;;
20
esac
21
22
[
-f
$PID
] &&
kill
`cat
$PID
`
23
cherryd
--config
=
$CONFIG
--import
=
$IMPORT
--pidfile
=
$PID $LOG
24