daemonite 0.5.9 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/daemonite.gemspec +1 -1
- data/lib/daemonite.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd02605e10df3a5a47877ab9a0c1212eb565a7606cdcdee6b2339cfd628bacf8
|
4
|
+
data.tar.gz: a89cd8b6da35b87c7ac679b607bc4ae8886546402218bcbe9367d7281ffff4e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f31aa4941704d843513bec86f6e4cd6049b95c853c9c65fe7b80d6ede6148be45b069fadb06ffe8be3f77f93d483bdc8da648a9f5ac980e44a525bcb78c7a76b
|
7
|
+
data.tar.gz: 17f2e8d7561787f8f2ed6ecfa95d62d3af8a4eb5e29a000413fb48ca53ce7d4bb7b45921d788c713c6ab65a23594e3bb62034b2204e2a05da7098ac0e283d664
|
data/daemonite.gemspec
CHANGED
data/lib/daemonite.rb
CHANGED
@@ -34,7 +34,7 @@ module Daemonism
|
|
34
34
|
:cmdl_info => nil,
|
35
35
|
:cmdl_parsing => true,
|
36
36
|
:cmdl_operation => 'start',
|
37
|
-
:kill_amount =>
|
37
|
+
:kill_amount => 100
|
38
38
|
}
|
39
39
|
|
40
40
|
def daemonism(opts={},&block)
|
@@ -135,7 +135,11 @@ module Daemonism
|
|
135
135
|
Process.kill "SIGKILL", pid
|
136
136
|
File.unlink(opts[:basepath] + '/' + opts[:pidfile])
|
137
137
|
else
|
138
|
-
|
138
|
+
if opts[:cmdl_operation] == 'stop'
|
139
|
+
Process.kill "SIGTERM", pid
|
140
|
+
else
|
141
|
+
Process.kill "SIGHUP", pid
|
142
|
+
end
|
139
143
|
end
|
140
144
|
count += 1
|
141
145
|
sleep 0.3
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daemonite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Daemonite - Process.daemon and argparse wrapper for loopies.
|
14
14
|
email: juergen.mangler@gmail.com
|