dyn-ruby-win32daemon 0.0.2 → 0.0.3

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 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c787377080210db3adbd84ed6871e8195a89ada2
4
- data.tar.gz: 3d1b786c61c83b54cc9c57e5a1028d8666c2b953
3
+ metadata.gz: 295aeb842dc7ed8954a721a44442578e1f1058cc
4
+ data.tar.gz: 0a1bb774bdf902e5dec9c4ddcb406b16822cbb71
5
5
  SHA512:
6
- metadata.gz: 5e39713d212795d30fb1d09fb1f200887bdb20d2c07f56014a2aa5994bd3eafcc24c2df4dcb1720f0dc2d224ffcfd00fa403c3c71bde1b41f37106f22450c9d0
7
- data.tar.gz: a96bff3d82c02be5928d6d70d98a4ffc771f5089b3e29de305ed4a8fa70f0f8fde3b7d7502fbee5cd6d526aff90f88c8f18732b1cd7de0b0c277f0686c851314
6
+ metadata.gz: e79acb46e7f2fbb02f831aa6fd4066d6a000fb3b459d6fb1e37c9bfac76422b7ba3ced3800921214c9237fbd34ccc10330c5cb529daa1e06ac553065345d1b3c
7
+ data.tar.gz: 653f88ad0ff15c350b3f2b1bf77a95f6be23632f52459dbe921d40235340fc2e743939031f91664171e2a9c64cd2118bdc35ce2891f548ec97074bbe99813ff2
@@ -53,10 +53,11 @@ when "stop"
53
53
 
54
54
  Sys::ProcTable.ps{ |s| pids.push(s.pid) if s.cmdline =~ /#{SRV}/ }
55
55
 
56
- pids -= [Process.pid]
57
- p pids
58
- p Process.kill(9,pids.last)
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!")
59
60
  when "status"
60
61
  require 'sys/proctable'
61
- Sys::ProcTable.ps{ |s| puts s.pid.to_s+" -> "+s.cmdline if s.pid != Process.pid and s.cmdline =~ /#{SRV}/ }
62
+ Sys::ProcTable.ps{ |s| puts "["+s.pid.to_s+"] "+s.cmdline if s.pid != Process.pid and s.cmdline =~ /#{SRV}/ }
62
63
  end
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - CQLS