dyn-ruby-win32daemon 0.0.3 → 0.1.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/dyn-daemon +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 295aeb842dc7ed8954a721a44442578e1f1058cc
4
- data.tar.gz: 0a1bb774bdf902e5dec9c4ddcb406b16822cbb71
3
+ metadata.gz: f746aa523cf1d3554f7d7e0a250b2e0c7bba3df7
4
+ data.tar.gz: aab6aa93a891af947d55d8c04651e6f6c0e1c02c
5
5
  SHA512:
6
- metadata.gz: e79acb46e7f2fbb02f831aa6fd4066d6a000fb3b459d6fb1e37c9bfac76422b7ba3ced3800921214c9237fbd34ccc10330c5cb529daa1e06ac553065345d1b3c
7
- data.tar.gz: 653f88ad0ff15c350b3f2b1bf77a95f6be23632f52459dbe921d40235340fc2e743939031f91664171e2a9c64cd2118bdc35ce2891f548ec97074bbe99813ff2
6
+ metadata.gz: 4a7e8a1775e7a90efe33ab44576c993dce720efb5dd93d8d6a0f642d9a4d532f7bdef29d4fcdc3ea1896b0efc2566fcd66434c51b38c3c2485b461ec714f9d42
7
+ data.tar.gz: ce51d5f07ceaef1dbba7da7af2c39da5ebb4ddd04fb931a9bb41dac73e6ff58b80d749a05260560580fde990ff8989a2865605bbbffdcb8ccf3ef5e29053d57c
@@ -54,9 +54,11 @@ when "stop"
54
54
  Sys::ProcTable.ps{ |s| pids.push(s.pid) if s.cmdline =~ /#{SRV}/ }
55
55
 
56
56
  pids -= [Process.pid]
57
- print "Kill process with pid #{pids.last}"
58
- res=Process.kill(9,pids.last)
59
- puts " => "+(res == 1 ? "Ok!" : "Failed!")
57
+ unless pids.empty?
58
+ print "Kill process with pid #{pids.last}"
59
+ res=Process.kill(9,pids.last)
60
+ puts " => "+(res == 1 ? "Ok!" : "Failed!")
61
+ end
60
62
  when "status"
61
63
  require 'sys/proctable'
62
64
  Sys::ProcTable.ps{ |s| puts "["+s.pid.to_s+"] "+s.cmdline if s.pid != Process.pid and s.cmdline =~ /#{SRV}/ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dyn-ruby-win32daemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - CQLS