pleaserun 0.0.30 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: bbf2d4b7f43cfea496c38a6132a1fdca27cbb032
4
- data.tar.gz: 002d130ff39ab67a4a1160371ed04d85b10e3b82
2
+ SHA256:
3
+ metadata.gz: 26644d13d1c206bd43fbdf17b755cee224c75e09ffa1d99b1dc897b922df709b
4
+ data.tar.gz: 61e54712aa2407b9072142ad25a5e9b6aeabca2626ce5d786b59a8899fe2cae6
5
5
  SHA512:
6
- metadata.gz: 3ca61fd1c475a7335d383c73997c683125af9cf45c69cca9c60d382086d71092e2ab848c8b5e486a312925ccb06262d24d3a8d35c4398d5d1d421cb44848e0dc
7
- data.tar.gz: e4dc000d73b705e1c62f0c792b080b4f78998a79bcb8a90c68a9f1e0628fbe40bef5cdd94c5f81e65f71d36baaee0e00e92afa9bec5355c5edec479b745a2eed
6
+ metadata.gz: d57ebc378b733b3017c0e1539cf6ac2c1dce4c7208f379197003191096720413717d3126611578231799f5f3650558a96c43b6897668f86efc8a342dc5f1985b
7
+ data.tar.gz: a53d2b3d7c6acb05b8686ee6663d8264bb26c0f2b790f632f48257057a8eb01f3a288ed92d556f65cd0e86dee0f905741dacbce84500d862036b3372510b6514
@@ -1,5 +1,11 @@
1
1
  = Pleaserun Changes and Releases
2
2
 
3
+ == 0.0.31 (March 17, 2020)
4
+ * Fixed a code error preventing `runit` in pleaserun from working (#143, #145)
5
+
6
+ == 0.0.30 (August 7, 2017)
7
+ * Released without changelog ???
8
+
3
9
  == 0.0.29 (April 17, 2017)
4
10
  * `pleaserun --version` will now write the version of pleaserun and exit. (#125)
5
11
 
data/README.md CHANGED
@@ -1,12 +1,18 @@
1
1
  # Please, Run!
2
2
 
3
- Pleaserun is a tool to generate startup scripts for the wasteland of sorrow
4
- that is process launchers.
3
+ Pleaserun is a tool to generate startup scripts and service definitions. It targets
4
+ service managers such as systemd, Upstart, launchd, sysv init, and runit.
5
5
 
6
6
  Ideally, you should be able to specify a configuration of how to run a given
7
7
  service command (like apache, syslog-ng, whatever), and this tool should
8
8
  be able to spit out a script or config file for your target platform.
9
9
 
10
+ ## Project Principles
11
+
12
+ * Community: If a newbie has a bad time, it's a bug.
13
+ * Engineering: Make it work, then make it right, then make it fast.
14
+ * Capabilities: If it doesn't do a thing today, we can make it do it tomorrow.
15
+
10
16
  ## What's going on here?
11
17
 
12
18
  With pleaserun, you can generate the following launchers/scripts/whatever:
@@ -17,7 +23,7 @@ With pleaserun, you can generate the following launchers/scripts/whatever:
17
23
  * runit
18
24
  * sysv init
19
25
 
20
- Want more? It's easy to add things. [File an issue](../../issues/) and ask away!
26
+ Want more? I want it to be easy to add things and invite you to [file an issue](../../issues/) with your ideas.
21
27
 
22
28
  ## Installation
23
29
 
@@ -151,3 +157,7 @@ Please enjoy running things! If you are not enjoying this program, then somethin
151
157
  If you are having a bad time, it is a bug!
152
158
 
153
159
  All contributions welcome (bug reports, feature requests, bug fixes, new features, etc!)
160
+
161
+ # Code of Conduct
162
+
163
+ This project has a code of conduct and uses the [Contributor Covenant](CODE_OF_CONDUCT.md).
@@ -88,7 +88,7 @@ class PleaseRun::Platform::Base
88
88
 
89
89
  attribute :environment_file, "A file containing environment variables to export for your application" do
90
90
  validate do |env|
91
- insist { env }.is_a?(File)
91
+ insist { env }.is_a?(String)
92
92
  end
93
93
  end
94
94
 
@@ -6,8 +6,8 @@ require "pleaserun/platform/base"
6
6
  # Learn what runit is here: http://smarden.org/runit/
7
7
  class PleaseRun::Platform::Runit < PleaseRun::Platform::Base
8
8
  attribute :service_path, "The path runit service directory",
9
- :default => "/service" do |path|
10
- validate do
9
+ :default => "/service" do
10
+ validate do |path|
11
11
  insist { path }.is_a?(String)
12
12
  end
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module PleaseRun
2
- VERSION = "0.0.30"
2
+ VERSION = "0.0.31"
3
3
  end
@@ -22,5 +22,9 @@ WorkingDirectory={{{chdir}}}
22
22
  {{/nice}}{{#limit_open_files}}LimitNOFILE={{{limit_open_files}}}
23
23
  {{/limit_open_files}}
24
24
 
25
+ # When stopping, how long to wait before giving up and sending SIGKILL?
26
+ # Keep in mind that SIGKILL on a process can cause data loss.
27
+ TimeoutStopSec=infinity
28
+
25
29
  [Install]
26
30
  WantedBy=multi-user.target
@@ -45,6 +45,14 @@ limit stack {{{limit_stack_size}}} {{{limit_stack_size}}}
45
45
  setuid {{{user}}}
46
46
  setgid {{{group}}}
47
47
 
48
+ # Set a really really large kill timeout
49
+ # By default, upstart has a kill timeout of 5 seconds.
50
+ # If the program is being stopped, but hasn't finished by the time this 'kill
51
+ # timeout' has expired, then upstart will destroy the process with SIGKILL.
52
+ # SIGKILL is a way to cause data loss, so we try to disable this feature by
53
+ # default.
54
+ kill timeout 99999999
55
+
48
56
  {{#prestart}}
49
57
  pre-start script
50
58
  {{{ prestart }}}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pleaserun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.30
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Sissel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-07 00:00:00.000000000 Z
11
+ date: 2020-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cabin
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  version: '0'
183
183
  requirements: []
184
184
  rubyforge_project:
185
- rubygems_version: 2.6.11
185
+ rubygems_version: 2.7.6
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: pleaserun