daemon_controller 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/LICENSE.txt +1 -2
- data/{README.markdown → README.md} +40 -76
- data/Rakefile +16 -574
- data/daemon_controller.gemspec +5 -4
- data/lib/daemon_controller/lock_file.rb +106 -105
- data/lib/daemon_controller/packaging.rb +10 -16
- data/lib/daemon_controller/spawn.rb +8 -7
- data/lib/daemon_controller/version.rb +10 -8
- data/lib/daemon_controller.rb +941 -851
- data/spec/daemon_controller_spec.rb +572 -409
- data/spec/echo_server.rb +139 -115
- data/spec/test_helper.rb +132 -105
- data/spec/unresponsive_daemon.rb +13 -7
- metadata +7 -20
- checksums.yaml.gz.asc +0 -12
- data/debian.template/changelog +0 -5
- data/debian.template/compat +0 -1
- data/debian.template/control.template +0 -15
- data/debian.template/copyright +0 -24
- data/debian.template/ruby-daemon-controller.install +0 -2
- data/debian.template/rules +0 -17
- data/debian.template/source/format +0 -1
- data/rpm/get_distro_id.py +0 -4
- data/rpm/rubygem-daemon_controller.spec.template +0 -102
- data.tar.gz.asc +0 -12
- metadata.gz.asc +0 -12
data/debian.template/copyright
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
Format: http://dep.debian.net/deps/dep5
|
2
|
-
Upstream-Name: daemon_controller
|
3
|
-
Source: https://github.com/FooBarWidget/daemon_controller
|
4
|
-
|
5
|
-
Files: *
|
6
|
-
Copyright: 2008-2013 Phusion
|
7
|
-
License: MIT
|
8
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
|
-
of this software and associated documentation files (the "Software"), to deal
|
10
|
-
in the Software without restriction, including without limitation the rights
|
11
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
12
|
-
copies of the Software, and to permit persons to whom the Software is
|
13
|
-
furnished to do so, subject to the following conditions:
|
14
|
-
.
|
15
|
-
The above copyright notice and this permission notice shall be included in
|
16
|
-
all copies or substantial portions of the Software.
|
17
|
-
.
|
18
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
19
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
20
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
21
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
22
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
23
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
24
|
-
THE SOFTWARE.
|
data/debian.template/rules
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
3.0 (quilt)
|
data/rpm/get_distro_id.py
DELETED
@@ -1,102 +0,0 @@
|
|
1
|
-
%global gem_name daemon_controller
|
2
|
-
%global gem_version <%= PACKAGE_VERSION %>
|
3
|
-
|
4
|
-
%if 0%{?fc18}
|
5
|
-
%global rubyabi 1.9.1
|
6
|
-
%endif
|
7
|
-
|
8
|
-
%if 0%{?el6}
|
9
|
-
%global rubyabi 1.8
|
10
|
-
%endif
|
11
|
-
|
12
|
-
Name: rubygem-%{gem_name}
|
13
|
-
Version: %{gem_version}
|
14
|
-
Release: 1<%= @distribution %>
|
15
|
-
Summary: Library for robust daemon management
|
16
|
-
License: MIT
|
17
|
-
Group: Development/Libraries
|
18
|
-
URL: https://github.com/FooBarWidget/daemon_controller
|
19
|
-
Source0: https://rubygems.org/gems/%{gem_name}-%{gem_version}.gem
|
20
|
-
|
21
|
-
%if 0%{?fedora} >= 19
|
22
|
-
Requires: ruby(release)
|
23
|
-
%else
|
24
|
-
Requires: ruby(abi) = %{rubyabi}
|
25
|
-
%endif
|
26
|
-
Requires: ruby(rubygems)
|
27
|
-
|
28
|
-
%if 0%{?fedora} >= 19
|
29
|
-
BuildRequires: ruby(release)
|
30
|
-
%else
|
31
|
-
BuildRequires: ruby(abi) = %{rubyabi}
|
32
|
-
%endif
|
33
|
-
%if 0%{?el6}
|
34
|
-
BuildRequires: ruby(rubygems)
|
35
|
-
%else
|
36
|
-
BuildRequires: rubygems-devel
|
37
|
-
%endif
|
38
|
-
|
39
|
-
BuildArch: noarch
|
40
|
-
Provides: rubygem(%{gem_name}) = %{gem_version}-%{release}
|
41
|
-
|
42
|
-
# macros for RHEL6 compatibility:
|
43
|
-
%{!?gem_dir: %global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)}
|
44
|
-
%{!?gem_instdir: %global gem_instdir %{gem_dir}/gems/%{gem_name}-%{gem_version}}
|
45
|
-
%{!?gem_libdir: %global gem_libdir %{gem_instdir}/lib}
|
46
|
-
%{!?gem_cache: %global gem_cache %{gem_dir}/cache/%{gem_name}-%{gem_version}.gem}
|
47
|
-
%{!?gem_spec: %global gem_spec %{gem_dir}/specifications/%{gem_name}-%{gem_version}.gemspec}
|
48
|
-
%{!?gem_docdir: %global gem_docdir %{gem_dir}/doc/%{gem_name}-%{gem_version}}
|
49
|
-
%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["sitearchdir"]')}
|
50
|
-
|
51
|
-
|
52
|
-
%description
|
53
|
-
Library which implements daemon management capabilities.
|
54
|
-
|
55
|
-
%prep
|
56
|
-
%setup -q -c -T
|
57
|
-
|
58
|
-
%build
|
59
|
-
%if 0%{?el6}
|
60
|
-
mkdir -p .%{gem_dir}
|
61
|
-
gem install \
|
62
|
-
--local \
|
63
|
-
--install-dir .%{gem_dir} \
|
64
|
-
--bindir .%{_bindir} \
|
65
|
-
--no-rdoc --no-ri \
|
66
|
-
--force \
|
67
|
-
--backtrace \
|
68
|
-
%{SOURCE0}
|
69
|
-
%else
|
70
|
-
%gem_install -n %{SOURCE0} --no-rdoc --no-ri
|
71
|
-
%endif
|
72
|
-
|
73
|
-
%install
|
74
|
-
rm -rf %{buildroot}
|
75
|
-
mkdir -p %{buildroot}%{gem_dir}
|
76
|
-
cp -a .%{_prefix}/* %{buildroot}%{_prefix}/
|
77
|
-
|
78
|
-
%check
|
79
|
-
pushd %{buildroot}%{gem_instdir}
|
80
|
-
ruby -Ilib -rdaemon_controller -e ''
|
81
|
-
popd
|
82
|
-
|
83
|
-
%clean
|
84
|
-
rm -rf %{buildroot}
|
85
|
-
|
86
|
-
%files
|
87
|
-
%defattr(-,root,root,-)
|
88
|
-
%dir %{gem_instdir}
|
89
|
-
%doc %{gem_instdir}/LICENSE.txt
|
90
|
-
%doc %{gem_instdir}/README.markdown
|
91
|
-
%{gem_instdir}/daemon_controller.gemspec
|
92
|
-
%{gem_instdir}/spec
|
93
|
-
%{gem_libdir}
|
94
|
-
%exclude %{gem_instdir}/Rakefile
|
95
|
-
%exclude %{gem_instdir}/debian.template
|
96
|
-
%exclude %{gem_instdir}/rpm
|
97
|
-
%exclude %{gem_cache}
|
98
|
-
%{gem_spec}
|
99
|
-
|
100
|
-
%changelog
|
101
|
-
* Wed Dec 11 2013 Hongli Lai <hongli@phusion.nl> - 1.1.7-1<%= @distribution %>
|
102
|
-
- Initial packaging
|
data.tar.gz.asc
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
-----BEGIN PGP SIGNATURE-----
|
2
|
-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
|
3
|
-
Comment: GPGTools - http://gpgtools.org
|
4
|
-
|
5
|
-
iQEcBAABAgAGBQJTFNXmAAoJECrHRaUKISqMrV0H/0JOlPn9AjtzVCU8XgfRCpMc
|
6
|
-
oa7tJRGZqOt5Ohq68tJXuDwQpxr1ihxe8+KpAy827cQcVEzW4PL8vEe2ZdQz4YMw
|
7
|
-
3kIsHsKhh45mv8bqcV4F60Wf4Hr2rYLOw8qC2YBNJ+JTDJcLp1z8YYsq4XGCzyRt
|
8
|
-
nDKfU9f68Q6fjcahUMrAb3Tp2Hq7msjHuRZCcxnkZJyVYtXK+bqmvjBEvBR7uX7f
|
9
|
-
l8ps86II2uSB3q794uFzdiFb3EOkm9tOSyMyXYasufxLBsr8OqjLxrD9hZUJRnvB
|
10
|
-
m/RCqhyCpyn6CJR6DeOURfrFL5wsABQTg7MxcKQJCPh9ux/mluedws2ReDDc4CA=
|
11
|
-
=ynkV
|
12
|
-
-----END PGP SIGNATURE-----
|
metadata.gz.asc
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
-----BEGIN PGP SIGNATURE-----
|
2
|
-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
|
3
|
-
Comment: GPGTools - http://gpgtools.org
|
4
|
-
|
5
|
-
iQEcBAABAgAGBQJTFNXmAAoJECrHRaUKISqMGaMIAIm9qZ2zS1kA7avCavkyQqLU
|
6
|
-
RoiiW8ykPgCqsuJc8G2pPUBCGffxFEfn5gstez0CYwspzf/KGBP+sizLsHMsWayj
|
7
|
-
bnAv3jrfgM80TyltU+OkMRjkIzaWLoK+LrQk7oCjVgmliIt0r9yf/istLye/lrl8
|
8
|
-
93PL0P1iEwW/xObB8SsqYsxX+qxUP3Xh5Ab7RMq1T46PejyPyBHs4vK9Q6D3eVUT
|
9
|
-
eYy6fXFQ5sr0DWwd2EVEF8UIxUoaoLwATdvvrDl1Z/8hY/V/itbylDUUROGB9GnL
|
10
|
-
nxzvZA8hSjTZObNehSZHfCqFMeizBFL9Jz/lqzdY8C3PSIgsEgYYh54QRoaVJBo=
|
11
|
-
=FEYT
|
12
|
-
-----END PGP SIGNATURE-----
|