mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
make synctl default to homesever.log
This commit is contained in:
parent
0538a4098d
commit
0d5c7718c0
6
synctl
6
synctl
@ -4,6 +4,7 @@ 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'
|
||||||
@ -21,13 +22,12 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "Starting ..."
|
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}"
|
echo "${GREEN}started${NORMAL}"
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo -n "Stopping ..."
|
echo -n "Stopping ..."
|
||||||
test -f $PIDFILE && kill `cat $PIDFILE`
|
test -f $PIDFILE && kill `cat $PIDFILE` && echo "${GREEN}stopped${NORMAL}"
|
||||||
echo "${GREEN}stopped${NORMAL}"
|
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
$0 stop && $0 start
|
$0 stop && $0 start
|
||||||
|
Loading…
Reference in New Issue
Block a user