Accepting request 296842 from devel:languages:perl:autoupdate
- updated to 0.19 see /usr/share/doc/packages/perl-Proc-Daemon/Changes - updated to 0.14 see /usr/share/doc/packages/perl-Proc-Daemon/Changes 0.14 Fri Jun 03 2011 - The filename memory is now a part of the object (not a package variable any more). This was a bug. - Since <fork> is not performed on Windows OS as on Linux, I removed the <eval> and <warn> from 0.13 and add an INFO to the documentation. - Updated the documentation. 0.13 Wed Jun 01 2011 - Add ability to define the user identifier for the daemon if you want to run it under other user then the parent (request from Holger Gläss). - Add <eval> and <warn> for OS not supporting POSIX::setsid (e.g. Windows). - Updated the documentation. 0.12 Tue Mai 24 2011 - Init() did not close all filehandles reliably in some cases. Thanks again to Rob Brown for reporting. - Text improvement in the documentation. 0.11 Mon Mai 23 2011 - Init() didn't close all filehandles reliably (see also bug report at http://rt.perl.org/rt3/Ticket/Display.html?id=72526). Thanks to Rob Brown for reporting and offering a patch. - Attributes 'dont_close_fh' AND 'dont_close_fd' added so we can define file handles and descriptors that must be preserved from the parent into the child (daemon). OBS-URL: https://build.opensuse.org/request/show/296842 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Proc-Daemon?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
82d8a4db6a
commit
e61d39097c
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a65ed70bbf6c841dabc313822cf722b540a8d71a7adde6d99493c56b9a6708d3
|
||||
size 12428
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8010d461a146b8c288a7b321e6e41e5b47b1774cae8cd7ee66cf2deca80b6f92
|
||||
size 14464
|
||||
3
Proc-Daemon-0.19.tar.gz
Normal file
3
Proc-Daemon-0.19.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b3f0fee4512f2e4c9f498d776dfe9aea1200f0b535a3a32c4d20c3b60a5f3dfa
|
||||
size 22500
|
||||
12
cpanspec.yml
Normal file
12
cpanspec.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
description_paragraphs: 2
|
||||
#no_testing: broken upstream
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#license: SUSE-NonFree
|
||||
@@ -1,3 +1,45 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 14 21:11:14 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 0.19
|
||||
see /usr/share/doc/packages/perl-Proc-Daemon/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 14 21:11:13 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 0.14
|
||||
see /usr/share/doc/packages/perl-Proc-Daemon/Changes
|
||||
|
||||
0.14 Fri Jun 03 2011
|
||||
- The filename memory is now a part of the object (not a package variable
|
||||
any more). This was a bug.
|
||||
- Since <fork> is not performed on Windows OS as on Linux, I removed the
|
||||
<eval> and <warn> from 0.13 and add an INFO to the documentation.
|
||||
- Updated the documentation.
|
||||
|
||||
0.13 Wed Jun 01 2011
|
||||
- Add ability to define the user identifier for the daemon if you want to
|
||||
run it under other user then the parent (request from Holger Gl<47>ss).
|
||||
- Add <eval> and <warn> for OS not supporting POSIX::setsid (e.g. Windows).
|
||||
- Updated the documentation.
|
||||
|
||||
0.12 Tue Mai 24 2011
|
||||
- Init() did not close all filehandles reliably in some cases. Thanks again
|
||||
to Rob Brown for reporting.
|
||||
- Text improvement in the documentation.
|
||||
|
||||
0.11 Mon Mai 23 2011
|
||||
- Init() didn't close all filehandles reliably (see also bug report at
|
||||
http://rt.perl.org/rt3/Ticket/Display.html?id=72526). Thanks to Rob Brown
|
||||
for reporting and offering a patch.
|
||||
- Attributes 'dont_close_fh' AND 'dont_close_fd' added so we can define
|
||||
file handles and descriptors that must be preserved from the parent into
|
||||
the child (daemon).
|
||||
- Updated the documentation.
|
||||
- In some environment it is not allowed to open anonymous files. In this
|
||||
case now a 'pid_file' must be defined. Thanks to Holger Gl<47>ss for
|
||||
reporting.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 22 06:53:13 UTC 2011 - coolo@opensuse.org
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Proc-Daemon (Version 0.10)
|
||||
# spec file for package perl-Proc-Daemon
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,22 +15,22 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Proc-Daemon
|
||||
Version: 0.10
|
||||
Release: 1
|
||||
License: GPL+ or Artistic
|
||||
Version: 0.19
|
||||
Release: 0
|
||||
%define cpan_name Proc-Daemon
|
||||
Summary: Proc::Daemon Perl module
|
||||
Url: http://search.cpan.org/dist/Proc-Daemon/
|
||||
Summary: Run Perl program(s) as a daemon process
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://www.cpan.org/authors/id/D/DE/DETI/Proc/%{cpan_name}-%{version}.tar.gz
|
||||
Url: http://search.cpan.org/dist/Proc-Daemon/
|
||||
Source: http://www.cpan.org/authors/id/A/AK/AKREAL/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(POSIX)
|
||||
Requires: perl(POSIX)
|
||||
BuildRequires: perl(Proc::ProcessTable)
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -42,57 +42,6 @@ A daemon is a process that runs in the background with no controlling
|
||||
terminal. Generally servers (like FTP, HTTP and SIP servers) run as daemon
|
||||
processes. Do not make the mistake to think that a daemon is a server. ;-)
|
||||
|
||||
Proc::Daemon does the following:
|
||||
|
||||
* 1
|
||||
|
||||
The script forks a child.
|
||||
|
||||
* 2
|
||||
|
||||
The child changes the current working directory to the value of
|
||||
'work_dir'.
|
||||
|
||||
* 3
|
||||
|
||||
The child clears the file creation mask.
|
||||
|
||||
* 4
|
||||
|
||||
The child becomes a session leader, which detaches the program from the
|
||||
controlling terminal.
|
||||
|
||||
* 5
|
||||
|
||||
The child forks another child (the final daemon process). This prevents
|
||||
the potential of acquiring a controlling terminal at all and detaches the
|
||||
daemon completely from the first parent.
|
||||
|
||||
* 6
|
||||
|
||||
The second child closes all open file descriptors.
|
||||
|
||||
* 7
|
||||
|
||||
The second child opens STDIN, STDOUT and STDERR to the location defined
|
||||
in the constructor ('new').
|
||||
|
||||
* 8
|
||||
|
||||
The second child returns to the calling script, or the program defined in
|
||||
'exec_command' is executed and the second child never returns.
|
||||
|
||||
* 9
|
||||
|
||||
The first child transfers the PID of the second child (daemon) to the
|
||||
parent and exits. Additionally the PID of the daemon process can be
|
||||
written into a file if 'pid_file' is defined.
|
||||
|
||||
NOTE: Because of the second fork the daemon will not be a session-leader
|
||||
and therefore Signals will not be send to other members of his process
|
||||
group. If you need the functionality of a session-leader you may want to
|
||||
call POSIX::setsid() manually at your daemon.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
@@ -108,11 +57,8 @@ call POSIX::setsid() manually at your daemon.
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
%doc Changes LICENSE README.md
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user