init
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
# (Re)start movim-rs on 127.0.0.1:8099 against the local Prosody
|
||||
D=$(cd "$(dirname "$0")" && pwd)
|
||||
ROOT=$(cd "$D/../.." && pwd)
|
||||
[ -f "$D/server.pid" ] && kill "$(cat "$D/server.pid")" 2>/dev/null
|
||||
sleep 0.3
|
||||
cd "$ROOT"
|
||||
MOVIM_BIND=127.0.0.1:8099 MOVIM_DOMAIN=localhost MOVIM_ALLOW_PRIVATE_URLS=1 \
|
||||
MOVIM_XMPP_PLAINTEXT=127.0.0.1:5222 MOVIM_DATA_DIR="$D/data" RUST_LOG=${RUST_LOG:-movim=info} \
|
||||
./target/debug/movim > "$D/server.log" 2>&1 &
|
||||
echo $! > "$D/server.pid"
|
||||
sleep 1
|
||||
Reference in New Issue
Block a user