pleaserun 0.0.30 → 0.0.31
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.
- checksums.yaml +5 -5
- data/CHANGELOG.asciidoc +6 -0
- data/README.md +13 -3
- data/lib/pleaserun/platform/base.rb +1 -1
- data/lib/pleaserun/platform/runit.rb +2 -2
- data/lib/pleaserun/version.rb +1 -1
- data/templates/systemd/default/program.service +4 -0
- data/templates/upstart/default/init.conf +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 26644d13d1c206bd43fbdf17b755cee224c75e09ffa1d99b1dc897b922df709b
|
4
|
+
data.tar.gz: 61e54712aa2407b9072142ad25a5e9b6aeabca2626ce5d786b59a8899fe2cae6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d57ebc378b733b3017c0e1539cf6ac2c1dce4c7208f379197003191096720413717d3126611578231799f5f3650558a96c43b6897668f86efc8a342dc5f1985b
|
7
|
+
data.tar.gz: a53d2b3d7c6acb05b8686ee6663d8264bb26c0f2b790f632f48257057a8eb01f3a288ed92d556f65cd0e86dee0f905741dacbce84500d862036b3372510b6514
|
data/CHANGELOG.asciidoc
CHANGED
@@ -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
|
4
|
-
|
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?
|
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).
|
@@ -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
|
10
|
-
validate do
|
9
|
+
:default => "/service" do
|
10
|
+
validate do |path|
|
11
11
|
insist { path }.is_a?(String)
|
12
12
|
end
|
13
13
|
end
|
data/lib/pleaserun/version.rb
CHANGED
@@ -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.
|
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:
|
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
|
185
|
+
rubygems_version: 2.7.6
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: pleaserun
|