#!/bin/sh

IP=$(hostname -i)
sed -e "s/seeds:.*/seeds: $IP/g" /var/lib/scylla/conf/scylla.yaml > $HOME/scylla.yaml
/usr/bin/scylla --log-to-syslog 1 \
                --log-to-stdout 0 \
                --developer-mode true \
                --default-log-level info \
                --options-file $HOME/scylla.yaml \
                --listen-address $IP \
                --rpc-address $IP \
                --network-stack posix
