diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-06-16 18:19:15 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-06-16 18:19:15 +0000 |
commit | 6e0f323d902e0114319c1ea4139ecc687277e412 (patch) | |
tree | 32868743639370d14f7d9151755805f65ff36256 /net-mgmt/arpwatch | |
parent | 18c2af1654a8b03389d03fcb3aacd7e87e596d95 (diff) |
Be more informative and produce an error if binary doesn't
exist.
Submitted by: rob@piethief.co.uk
Notes
Notes:
svn path=/head/; revision=111615
Diffstat (limited to 'net-mgmt/arpwatch')
-rw-r--r-- | net-mgmt/arpwatch/files/arpwatch.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net-mgmt/arpwatch/files/arpwatch.sh b/net-mgmt/arpwatch/files/arpwatch.sh index 92035b9eb274..e7c5c3305bd4 100644 --- a/net-mgmt/arpwatch/files/arpwatch.sh +++ b/net-mgmt/arpwatch/files/arpwatch.sh @@ -31,6 +31,9 @@ start) '') if [ -x "$PREFIX"/sbin/arpwatch -a -d "$PREFIX"/arpwatch ]; then "$PREFIX"/sbin/arpwatch && echo -n ' arpwatch' + else + echo "Error: Cannot find $PREFIX/sbin/arpwatch" >&2 + exit 1 fi ;; *) |