]> git.pld-linux.org Git - projects/pld-builder.new.git/blame - PLD_Builder/request_handler_server
- shell script for daemon startup
[projects/pld-builder.new.git] / PLD_Builder / request_handler_server
CommitLineData
440d6759
ER
1#!/bin/sh
2sock=$(dirname "$0")/request_handler_server.sock
3daemon=0
4attach=0
5
6if [ x"$1" = x"--daemon" -o x"$1" = x"-d" ]; then
7 daemon=1
8fi
9if [ x"$1" = x"--attach" -o x"$1" = x"-a" ]; then
10 attach=1
11fi
12
13if [ ! -S $sock ]; then
14 daemon=1
15fi
16
17if [ "$daemon" = 1 ]; then
18 cd $(dirname $sock)
19 echo "Starting request_handler_server"
20 rm -f $sock
21 exec dtach -n $(basename $sock) -r none python request_handler_server.py
22 exit 1
23fi
24
25# attach to session
26if [ "$attach" = 1 ]; then
27 echo "Attaching to request_handler_server"
28 exec dtach -a $sock
29fi
This page took 0.028626 seconds and 4 git commands to generate.