]> git.pld-linux.org Git - projects/pld-builder.new.git/blame - PLD_Builder/request_handler_server
Switch to https for client/request handler server and between builders communication...
[projects/pld-builder.new.git] / PLD_Builder / request_handler_server
CommitLineData
440d6759 1#!/bin/sh
444fda89
ER
2self=$0
3if [ -L "$self" ]; then
4 self=$(readlink -f "$0")
5fi
6sock=$(dirname "$self")/request_handler_server.sock
440d6759
ER
7daemon=0
8attach=0
9
10if [ x"$1" = x"--daemon" -o x"$1" = x"-d" ]; then
11 daemon=1
12fi
13if [ x"$1" = x"--attach" -o x"$1" = x"-a" ]; then
14 attach=1
15fi
16
17if [ ! -S $sock ]; then
18 daemon=1
19fi
20
bcd2ee23
ER
21# if none of the modes attach to it
22if [ $daemon = 0 -a $attach = 0 ]; then
23 attach=1
444fda89
ER
24fi
25
440d6759 26if [ "$daemon" = 1 ]; then
440d6759
ER
27 echo "Starting request_handler_server"
28 rm -f $sock
444fda89 29 cd $(dirname $sock)
440d6759
ER
30 exec dtach -n $(basename $sock) -r none python request_handler_server.py
31 exit 1
32fi
bcd2ee23
ER
33
34# attach to session
35if [ "$attach" = 1 ]; then
36 echo "Attaching to request_handler_server"
37 exec dtach -a $sock
38 exit 1
39fi
This page took 0.105479 seconds and 4 git commands to generate.