pleaserun 0.0.27 → 0.0.28

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
2
  SHA1:
3
- metadata.gz: 5da0f7988a9947a210cbb3fec5070dd95f874e8d
4
- data.tar.gz: 75791509553c575a50dd55ed77aced3e924142cc
3
+ metadata.gz: ffe7bd35a8979fae195d6af866698f4d7f1064cf
4
+ data.tar.gz: a3fc41ed4350a763c5d79b23fe3eba2244163ab7
5
5
  SHA512:
6
- metadata.gz: 3639a10e3e0f7df7d3de587173706c872e814461185f83b3b242a496d9bb94dbb2e7b8b57be4935494f01d1aece22126b9a5a0cf194109d48797d9a2f93eb588
7
- data.tar.gz: 03331a51f9dd499f01dcc76e1d60d1578a5b5027d757f339712a7a6168923809e55d1e52cd24743ae86e23a495f769bf512f303b94dee55bc2a6eeb2c7e20641
6
+ metadata.gz: b3c0e84cbcbc649e8526f6cc4c1f3549ff0ad199897cc879dbcefd73427fdac91afa7236a6cfde00c5d802fdb9c2444099a4b24f06251b22949b6059897cf6c7
7
+ data.tar.gz: 99235189ac2182d5ddf860b330c92ee4c8aec6583123a2e920cca059d11d807eb3db0fc9e19b0c8e2b76069cefc59a7b4756cc35f1bf65bee14dc522c1c99107
@@ -1,5 +1,10 @@
1
1
  = Pleaserun Changes and Releases
2
2
 
3
+ == 0.0.28 (February 6, 2017)
4
+ * sysv and upstart will now `set -a` before loading /etc/default and
5
+ /etc/sysconfig files. This is to bring them in line with what users are
6
+ asking me as well as with what systemd does with these files. (#121)
7
+
3
8
  == 0.0.27 (November 4, 2016)
4
9
  * Fix a bug where upstart jobs would fail to run if the job's user was not root.
5
10
  * upstart: Add nice and limit_open_files support for Upstart 0.6.5
@@ -2,7 +2,7 @@ Gem::Specification.new do |spec|
2
2
  files = File.read(__FILE__)[/^__END__$.*/m].split("\n")[1..-1]
3
3
 
4
4
  spec.name = "pleaserun"
5
- spec.version = "0.0.27"
5
+ spec.version = "0.0.28"
6
6
  spec.summary = "pleaserun"
7
7
  spec.description = "pleaserun"
8
8
  spec.license = "Apache 2.0"
@@ -1,3 +1,3 @@
1
1
  {{#all_environment_variables}}
2
- export {{key}}={{#shell_quote}}{{value}}{{/shell_quote}}
2
+ {{key}}={{#shell_quote}}{{value}}{{/shell_quote}}
3
3
  {{/all_environment_variables}}
@@ -42,8 +42,12 @@ nice="{{{nice}}}"
42
42
  # The default behavior is to simply log a message "program stop failed; still running"
43
43
  KILL_ON_STOP_TIMEOUT=0
44
44
 
45
+ # When loading default and sysconfig files, we use `set -a` to make
46
+ # all variables automatically into environment variables.
47
+ set -a
45
48
  [ -r {{{default_file}}} ] && . {{{default_file}}}
46
49
  [ -r {{{sysconfig_file}}} ] && . {{{sysconfig_file}}}
50
+ set +a
47
51
 
48
52
  [ -z "$nice" ] && nice=0
49
53
 
@@ -1,3 +1,3 @@
1
1
  {{#all_environment_variables}}
2
- export {{key}}={{#shell_quote}}{{value}}{{/shell_quote}}
2
+ {{key}}={{#shell_quote}}{{value}}{{/shell_quote}}
3
3
  {{/all_environment_variables}}
@@ -38,7 +38,11 @@ end script
38
38
  {{/prestart}}
39
39
 
40
40
  script
41
+ # When loading default and sysconfig files, we use `set -a` to make
42
+ # all variables automatically into environment variables.
43
+ set -a
41
44
  [ -r "{{{default_file}}}" ] && . "{{{default_file}}}"
42
45
  [ -r "{{{sysconfig_file}}}" ] && . "{{{sysconfig_file}}}"
46
+ set +a
43
47
  exec chroot --userspec {{{user}}}:{{{group}}} {{{chroot}}} {{{program}}} {{{shell_args}}} >> {{ log_path_stdout }} 2>> {{ log_path_stderr }}
44
48
  end script
@@ -1,3 +1,3 @@
1
1
  {{#all_environment_variables}}
2
- export {{key}}={{#shell_quote}}{{value}}{{/shell_quote}}
2
+ {{key}}={{#shell_quote}}{{value}}{{/shell_quote}}
3
3
  {{/all_environment_variables}}
@@ -60,7 +60,11 @@ end script
60
60
  {{/prestart}}
61
61
 
62
62
  script
63
+ # When loading default and sysconfig files, we use `set -a` to make
64
+ # all variables automatically into environment variables.
65
+ set -a
63
66
  [ -r {{{default_file}}} ] && . {{{default_file}}}
64
67
  [ -r {{{sysconfig_file}}} ] && . {{{sysconfig_file}}}
68
+ set +a
65
69
  exec {{{program}}} {{{shell_args}}}
66
70
  end script
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.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Sissel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-04 00:00:00.000000000 Z
11
+ date: 2017-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cabin
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  requirements: []
183
183
  rubyforge_project:
184
- rubygems_version: 2.5.1
184
+ rubygems_version: 2.4.8
185
185
  signing_key:
186
186
  specification_version: 4
187
187
  summary: pleaserun