The patch below fixes two nits in Mon 0.99.2:
(1) NetBSD startup scripts (known as rc.d scripts) work much
better when the name of the daemon is in the command line.
(2) NetBSD, like Linux and OpenBSD and FreeBSD, default to
a Unix socket for syslog. Without this patch, mon's syslog
messages go into the bit bucket on NetBSD (and probably FreeBSD).
-- Ed
--- mon 2001/10/12 03:37:32 1.2
+++ mon 2001/11/17 01:07:27
@@ -29,6 +29,9 @@
my $AUTHOR='[EMAIL PROTECTED]';
my $RELEASE='$ProjectVersion: mon-0-99-2.6 $';
+$0= "mon" . " " . join(" ", @ARGV)
+ if $^O eq "netbsd"; # NetBSD rc.d script compatibility
+
#
# modules in the perl distribution
#
@@ -224,7 +227,7 @@
}
}
-($^O eq "linux" || $^O eq "openbsd") && setlogsock ('unix');
+($^O eq "linux" || $^O =~ "^(open|free|net)bsd\$") && setlogsock ('unix');
openlog ("mon", "cons,pid", $CF{"SYSLOG_FACILITY"});