aboutsummaryrefslogtreecommitdiff
path: root/misc/xfeast
blob: 8a8504a6b9daf67dfa3d412f6771a0a917f3c923 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
#
# xfeast: execute silc gateway
#

pid="$HOME/tmp/silc.pid"
if [[ -f "$pid" ]]; then
  if `ps $pid | grep -q $pid`; then
    kill `cat $pid`
  fi
  rm $pid
fi
netcat -l -p 1706 -e "/usr/bin/feast .feast.conf" &
echo "$!" > $pid
trap "kill `cat $pid`" 2 15