summaryrefslogtreecommitdiffstats
path: root/security/portsentry/files/portsentry.sh.in
blob: 08c9c2f4e430b0901a94afea219a18795782a0fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
PORTSENTRY="%%PREFIX%%/bin/portsentry"

case "$1" in
        start)  
                echo -n ' portsentry ('
                ${PORTSENTRY} -tcp > /dev/null && echo -n 'tcp'
                ${PORTSENTRY} -udp > /dev/null && echo -n ' udp'
                echo -n ')'
                ;;
        stop)   
                killall `basename ${PORTSENTRY}`
                ;;
        *)
                echo "Usage: `basename $0` {start|stop}" >&2
                ;;
esac
OpenPOWER on IntegriCloud