Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2023 10:00:52 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9d49b37d57f7 - main - net-mgmt/nagios-check_relayd_status: minor style fixes in the script
Message-ID:  <202305101000.34AA0quE051711@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9d49b37d57f74ca5d1c87a4a75f44c25c0a2a207

commit 9d49b37d57f74ca5d1c87a4a75f44c25c0a2a207
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2023-05-10 09:59:32 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2023-05-10 09:59:32 +0000

    net-mgmt/nagios-check_relayd_status: minor style fixes in the script
    
    Git rid of UTF-8 apostrophe and contraction altogether (it is spelled
    as "cannot" elsewhere throughout the code) and whack EOL whitespace.
---
 .../nagios-check_relayd_status/files/check_relayd_status     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/net-mgmt/nagios-check_relayd_status/files/check_relayd_status b/net-mgmt/nagios-check_relayd_status/files/check_relayd_status
index 2697222dfa5b..62246be1448c 100644
--- a/net-mgmt/nagios-check_relayd_status/files/check_relayd_status
+++ b/net-mgmt/nagios-check_relayd_status/files/check_relayd_status
@@ -64,7 +64,7 @@ if not all hosts in a table are up and a critical if a table
 and/or redirect is totally down.
 
 Options:
- --help 
+ --help
     Print detailed this screen
  --redirect STRING
     String with name of redirect to check. Multiple redirects
@@ -74,13 +74,13 @@ Options:
     can be seperated by comma
 
 Examples:
- $0 
+ $0
 
     Checks if all redirects, tables and hosts which are
     defined at the relayd startup are active.
 
  $0 --redirect smtp --table pmtahost,pmtahostfallback
-    
+
     Checks if the specified redirects and tables exists.
     Besides there will be an alert if any other redirect
     or table defined in the checked relayd is not active.
@@ -126,10 +126,10 @@ my @execute = ($command, $parameter);
 
 # make unbuffered output
 $|=1;
-open STDERR, ">&STDOUT" or die "Can’t dup STDOUT: $!";
+open STDERR, ">&STDOUT" or die "Cannot dup STDOUT: $!";
 
 eval {
-	my @return = split(/\n/, `@execute`) 
+	my @return = split(/\n/, `@execute`)
 		or die "command returns an errorcode $?: '@execute'";
 
 	foreach ( @return ) {
@@ -149,7 +149,7 @@ eval {
 	if ( $cnt_hosts{'up'} == 0 ) {
 		print "CRITICAL: relayd does not find any hosts up\n";
 		exit(2);
-	} 
+	}
 
 	for my $red ( keys %cnt_redirects ) {
 		if ( $cnt_redirects{$red} == 0 ) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305101000.34AA0quE051711>