fi
if [ "$daemon" = 1 ]; then
- echo "Starting request_handler_server"
+ echo "Starting request_handler_server(s)"
rm -f $sock
cd $(dirname $sock)
- exec dtach -n $(basename $sock) -r none python request_handler_server.py
+ tmux -S $sock new-session -d -s "request_handler_server" -n "http" "python request_handler_server.py" && \
+ exec tmux -S $sock new-window -d -t "request_handler_server" -n "https" "python request_handler_server.py ssl"
exit 1
fi
# attach to session
if [ "$attach" = 1 ]; then
- echo "Attaching to request_handler_server"
- exec dtach -a $sock
+ echo "Attaching to request_handler_server(s)"
+ exec tmux -S $sock attach
exit 1
fi