Accepting request 894078 from home:jmoellers:branches:network

OBS-URL: https://build.opensuse.org/request/show/894078
OBS-URL: https://build.opensuse.org/package/show/network/ddclient?expand=0&rev=58
This commit is contained in:
Christian Wittmer 2021-06-18 14:36:25 +00:00 committed by Git OBS Bridge
parent 73940de90a
commit b46042254c
3 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,12 @@
Index: ddclient-3.9.1/ddclient
===================================================================
--- ddclient-3.9.1.orig/ddclient
+++ ddclient-3.9.1/ddclient
@@ -847,6 +847,7 @@ if (opt('foreground') || opt('force')) {
print STDERR "${program}: can not fork ($!)\n";
exit -1;
} elsif ($pid) {
+ sleep(1);
exit 0;
}
$SIG{'CHLD'} = 'DEFAULT';

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue May 18 14:43:16 UTC 2021 - Josef Möllers <josef.moellers@suse.com>
- Systemd expects the PID file to exist as soon as the main process
exists. However, it takes quite a while until the pid file is
created by the daemon process, so we delay the main process
for 1 second before exit()ing.
This gets rid of an annoying warning message in "systemctl
status".
[ddclient, ddclient-delay-main-process-for-systemd.patch]
-------------------------------------------------------------------
Wed Aug 19 09:56:26 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package ddclient
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -28,6 +28,7 @@ Source1: %{name}.service
Source2: %{name}.sysconfig
Source3: %{name}-tmpfiles.conf
Patch0: %{name}-3.8.1-config.patch
Patch1: %{name}-delay-main-process-for-systemd.patch
Requires: perl >= 5.004
Requires: perl-Data-Validate-IP
Requires(pre): %fillup_prereq
@ -51,6 +52,7 @@ cron.
%prep
%setup -q
%patch0
%patch1 -p1
rm -f sample-etc_ddclient.conf.orig
chmod a-x sample-*
mkdir examples