Skip to content
Snippets Groups Projects
Commit 91b37065 authored by Erik Johnston's avatar Erik Johnston
Browse files

Don't autogen config in synctl for the same reasons we don't turn of...

Don't autogen config in synctl for the same reasons we don't turn of --generate-config by default on the homeserver - it is liable to confuse people who have moved the config file or have chosen a non standard location.

Also, don't override log file location.
parent e062f2df
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,6 @@ SYNAPSE="synapse/app/homeserver.py" ...@@ -4,7 +4,6 @@ SYNAPSE="synapse/app/homeserver.py"
CONFIGFILE="homeserver.yaml" CONFIGFILE="homeserver.yaml"
PIDFILE="homeserver.pid" PIDFILE="homeserver.pid"
LOGFILE="homeserver.log"
GREEN=$'\e[1;32m' GREEN=$'\e[1;32m'
NORMAL=$'\e[m' NORMAL=$'\e[m'
...@@ -14,15 +13,12 @@ set -e ...@@ -14,15 +13,12 @@ set -e
case "$1" in case "$1" in
start) start)
if [ ! -f "$CONFIGFILE" ]; then if [ ! -f "$CONFIGFILE" ]; then
echo "No config file found - generating a default one..." echo "No config file found"
$SYNAPSE -c "$CONFIGFILE" --generate-config
echo "Wrote $CONFIGFILE"
echo "You must now edit this file before continuing"
exit 1 exit 1
fi fi
echo -n "Starting ..." echo -n "Starting ..."
$SYNAPSE --daemonize -c "$CONFIGFILE" --pid-file "$PIDFILE" --log-file "$LOGFILE" $SYNAPSE --daemonize -c "$CONFIGFILE" --pid-file "$PIDFILE"
echo "${GREEN}started${NORMAL}" echo "${GREEN}started${NORMAL}"
;; ;;
stop) stop)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment