aboutsummaryrefslogtreecommitdiff
path: root/myrpki/run-daemons.sh
blob: c24af7755bd0c358f5868f10e69d327bc112bc67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh -
# $Id$

set -x

cd `dirname $0`

if test -z "$STY"
then

  exec screen -L sh $0 ${1+"$@"}

else

  #screen python ../rpkid/irdbd.py
  #screen python ../rpkid/rpkid.py
  #screen python ../rpkid/pubd.py

  python ../rpkid/irdbd.py &
  python ../rpkid/rpkid.py &
  python ../rpkid/pubd.py &
  
  #if test -n "$*"; then sleep 5; "$@"; fi

  # Apparently Control-C-ing out of this kills the daemons, which is
  # what we want but was a surprise to me.  Probably SIGHUP effect due
  # to running under screen, or something like that.
  wait

fi