dev-start.sh (618B)
1 #!/bin/sh 2 3 set -e 4 5 ROOT="$(pwd)" 6 7 SOCK="$ROOT/testroot/run/slowcgi.sock" 8 CHROOT="$ROOT/testroot" 9 10 if [ ! -d "$CHROOT" ]; then 11 echo "Missing testroot. Run make testroot first." 12 exit 1 13 fi 14 15 tmux new-session -d -s simpleupload 16 17 tmux rename-window -t simpleupload:0 slowcgi 18 tmux send-keys -t simpleupload:0 \ 19 "doas /usr/sbin/slowcgi -u dev -dvvv -s $SOCK -p $CHROOT/" C-m 20 21 tmux split-window -h -t simpleupload:0 22 23 tmux send-keys -t simpleupload:0.1 \ 24 "doas /usr/sbin/httpd -dvvv -f conf/httpd-test.conf" C-m 25 26 if [ -n "$TMUX" ]; then 27 tmux switch-client -t simpleupload 28 else 29 tmux attach-session -t simpleupload 30 fi