diff options
author | Volker Stolz <vs@FreeBSD.org> | 2005-04-18 13:16:47 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2005-04-18 13:16:47 +0000 |
commit | e4c5d5f26ae6d1beee945a788b225938058235a2 (patch) | |
tree | 7df9b13224643d5fcf093f47d6f4c39a68c205c9 /security/portsentry/files/portsentry.sh.in | |
parent | a9cf7529a0a59e4ffa14b13b291e20a6fc779d73 (diff) |
Notes
Diffstat (limited to 'security/portsentry/files/portsentry.sh.in')
-rw-r--r-- | security/portsentry/files/portsentry.sh.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/security/portsentry/files/portsentry.sh.in b/security/portsentry/files/portsentry.sh.in new file mode 100644 index 000000000000..03d06b346d4c --- /dev/null +++ b/security/portsentry/files/portsentry.sh.in @@ -0,0 +1,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 |