mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
use and adapt some patches from Fedora fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/13314
22 lines
1,008 B
Diff
22 lines
1,008 B
Diff
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
|
|
index 7b512e1..fe7d9dc 100644
|
|
--- a/lib/Smokeping.pm
|
|
+++ b/lib/Smokeping.pm
|
|
@@ -3658,7 +3658,7 @@ sub daemonize_me ($) {
|
|
}
|
|
print "Warning: no logging method specified. Messages will be lost.\n"
|
|
unless $logging;
|
|
- print "Daemonizing $0 ...\n";
|
|
+ #print "Daemonizing $0 ...\n";
|
|
defined (my $pid = fork) or die "Can't fork: $!";
|
|
if ($pid) {
|
|
exit;
|
|
@@ -3718,7 +3718,7 @@ sub daemonize_me ($) {
|
|
die "missing facility?" unless defined $fac;
|
|
$syslog_facility = $fac if defined $fac;
|
|
$syslog_priority = $pri if defined $pri;
|
|
- print "Note: logging to syslog as $syslog_facility/$syslog_priority.\n";
|
|
+ #print "Note: logging to syslog as $syslog_facility/$syslog_priority.\n";
|
|
openlog(basename($0), 'pid', $syslog_facility);
|
|
eval {
|
|
syslog($syslog_priority, 'Starting syslog logging');
|