summary refs log tree commit diff
path: root/synctl
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-09-03 22:49:47 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-09-03 22:49:47 +0100
commit0d5c7718c0a1b24701d4e5211518d9a0d7e21187 (patch)
tree540bb197a849563e270baf8abd018712a7b54644 /synctl
parentMerge branch 'release-v0.2.1' (diff)
downloadsynapse-0d5c7718c0a1b24701d4e5211518d9a0d7e21187.tar.xz
make synctl default to homesever.log
Diffstat (limited to '')
-rwxr-xr-xsynctl6
1 files changed, 3 insertions, 3 deletions
diff --git a/synctl b/synctl
index 763bcce0a0..99dc545ba5 100755
--- a/synctl
+++ b/synctl
@@ -4,6 +4,7 @@ SYNAPSE="synapse/app/homeserver.py"
 
 CONFIGFILE="homeserver.yaml"
 PIDFILE="homeserver.pid"
+LOGFILE="homeserver.log"
 
 GREEN=$'\e[1;32m'
 NORMAL=$'\e[m'
@@ -21,13 +22,12 @@ case "$1" in
     fi
 
     echo -n "Starting ..."
-    $SYNAPSE --daemonize -c "$CONFIGFILE" --pid-file "$PIDFILE" --log-file synapse.log
+    $SYNAPSE --daemonize -c "$CONFIGFILE" --pid-file "$PIDFILE" --log-file "$LOGFILE"
     echo "${GREEN}started${NORMAL}"
     ;;
   stop)
     echo -n "Stopping ..."
-    test -f $PIDFILE && kill `cat $PIDFILE`
-    echo "${GREEN}stopped${NORMAL}"
+    test -f $PIDFILE && kill `cat $PIDFILE` && echo "${GREEN}stopped${NORMAL}"
     ;;
   restart)
     $0 stop && $0 start