twisterp2pblockchainnetworkbittorrentmicrobloggingipv6social-networkdhtdecentralizedtwisterarmyp2p-networktwister-servertwister-ipv6twister-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
526 B
37 lines
526 B
11 years ago
|
#!/bin/bash
|
||
|
|
||
|
RPCUSER='user'
|
||
|
RPCPASSWORD='pwd'
|
||
|
RPCALLOWIP='127.0.0.1'
|
||
|
|
||
11 years ago
|
BIN=$TWISTER_CORE_PATH/twisterd
|
||
11 years ago
|
|
||
|
CONFFILE="$TWISTER_HOME/twister.conf"
|
||
|
|
||
|
OPTS="-daemon -debug"
|
||
|
if [ ! -f "$CONFFILE" ]; then
|
||
|
OPTS='$OPTS -pid=$PIDFILE -rpcuser=$RPCUSER -rpcpassword=$RPCPASSWORD -rpcallowip=$RPCALLOWIP'
|
||
|
fi
|
||
|
|
||
|
|
||
|
function usage {
|
||
|
echo "Usage : $(basename $0) start|stop"
|
||
|
echo
|
||
|
exit
|
||
|
}
|
||
|
|
||
|
if [ $# -lt 1 ]
|
||
|
then
|
||
|
usage $@
|
||
|
fi
|
||
|
|
||
|
case "$1" in
|
||
|
start) $BIN $OPTS
|
||
|
echo
|
||
|
;;
|
||
|
stop) $BIN stop
|
||
|
;;
|
||
|
*) echo "Invalid option: $1"
|
||
|
usage $@
|
||
|
;;
|
||
|
esac
|