bfulton
f6b57d7b92
rough draft for systemd export support
...
http://0pointer.de/blog/projects/systemd.html
This adds support for exporting systemd targets and services. The
structure is based on the existing upstart support.
Quality is draft and expected to refine in the coming weeks.
One Foremanism that is not respected by these export templates is the
usual log output location, instead stdout and stderr go to syslog.
2013-04-15 14:43:02 -04:00
David Dollar
f1c2347680
Merge pull request #317 from andymorris/fix_deleted_upstart_files
...
Prevent upstart export from deleting similarly named upstart files
2013-04-14 08:45:21 -07:00
David Dollar
bff554d554
Merge pull request #347 from bkeepers/dotenv
...
Replace Foreman::Env with dotenv
2013-04-14 08:37:31 -07:00
David Dollar
eaed989c75
Merge pull request #329 from kentaro/permit-underscore-in-procfile
...
Permit hyphen for command name in Procfile
2013-04-14 08:32:24 -07:00
David Dollar
17a8a316b8
Merge pull request #292 from andrewsmedina/master
...
circus support
2013-04-14 08:30:17 -07:00
John Griffin
6786f4df39
Revert "Ensure foreman is the process group leader"
...
This reverts commit 44726e377e .
Conflicts:
lib/foreman/engine.rb
2013-04-09 17:05:16 +01:00
Brandon Keepers
3abe10e5ab
Replace Foreman::Env with dotenv
2013-03-22 10:38:58 -04:00
David Dollar
2ebb33e049
0.62.0
2013-03-08 14:52:50 -05:00
Michael Granger
169188376b
Try to allow children to shut down gracefully
...
Since signals will no longer be handled once foreman goes into
`terminate_gracefully`, default signal handlers are restored so as
not to cause it to get stuck in an unTERMable state.
This necessitates not using the process group for signalling
except as a last resort, as foreman itself will receive the signals
it sends. This splits `killall` into two methods, one which
signals only processes foreman itself has started, and one which
signals all processes in the process group to try to clean up
more aggressively, and then reworks `terminate_gracefully` to use
them.
2013-03-04 14:05:53 -08:00
Michael Granger
5ab08c608b
Add deferred signal-handling ( fixes #332 ).
...
This uses a thread-local queue and a self-pipe so the code in the
trap blocks is properly re-entrant.
For details, see:
* http://cr.yp.to/docs/selfpipe.html
* http://blog.rubybestpractices.com/posts/ewong/016-Implementing-Signal-Handlers.html
2013-03-04 13:28:37 -08:00
Kentaro Kuribayashi
5ef8bbdbe3
Permit underscore for command name in Procfile.
2013-02-21 11:30:59 +09:00
Michael Kaiser
6215f8b3db
Fixed a typo in cli options description
2013-02-14 14:45:44 +01:00
Andy Morris
9f3b903085
Prevent upstart export from deleting similarly named upstart files
2013-01-25 00:24:04 -06:00
David Dollar
26bb0ed54e
0.61.0
2013-01-14 08:18:05 -05:00
David Dollar
44002953f6
Merge pull request #277 from pcasaretto/add-timeout-switch
...
Add timeout switch to CLI - fixes #178
2013-01-14 05:12:12 -08:00
David Dollar
bb2c3a2d04
Merge pull request #264 from asanghi/master
...
shared_path is set in documentation leading to early evaluation
2013-01-14 05:10:47 -08:00
David Dollar
88cdaacc67
Merge pull request #258 from mclazarus/master
...
Don't quote shell escaped values.
2013-01-14 05:10:36 -08:00
David Dollar
21dd610eaf
Merge pull request #280 from BIAINC/windows/host-support
...
Strip Windows Line Endings
2013-01-14 05:10:01 -08:00
David Dollar
fe65c7510d
Merge pull request #288 from crohr/remove-rubygems-requirement
...
Remove explicit requirement on rubygems.
2013-01-14 05:08:27 -08:00
David Dollar
cd2c255296
Merge pull request #291 from liveh2o/master
...
JRuby 1.9 doesn't require posix/spawn
2013-01-14 05:08:10 -08:00
David Dollar
92c1909217
Merge pull request #300 from mattv/output-blank-lines
...
Don't ignore blank lines in the output
2013-01-14 05:07:31 -08:00
David Dollar
af57bf3d52
Merge pull request #302 from ctrochalakis/process_group_fix
...
Ensure foreman is the process group leader
2013-01-14 05:07:21 -08:00
David Dollar
443994d3b5
Merge pull request #303 from fxposter/master
...
Fix for high CPU load. Fixes #260 and #299 .
2013-01-14 05:06:44 -08:00
nseo
0d53f6bd6c
fix more
2013-01-13 22:10:12 +09:00
nseo
1d2bcdbc56
fix color
2013-01-12 01:10:25 +09:00
Pavel Forkert
aceea1472a
Fix #299 and #260
...
Some processes close their output channels and IO.select keeps
returning them as "readable", while IO#gets returns nil on them, thus
spending a lot of CPU looping through the same reader continuously
2013-01-07 02:30:56 +02:00
Christos Trochalakis
44726e377e
Ensure foreman is the process group leader
...
Foreman should be the process leader before killing processes using
his process group id.
Before that foreman was broken when it was not spawned from a shell.
2012-12-27 15:47:02 +02:00
Matt Venables
61eca5a1d8
Don't ignore blank lines in the output
...
This fixes the stdout code to ensure that empty lines are outputted.
Many times, these blank lines are intentional, so foreman should not
suppress them.
This fixes #286
2012-12-21 11:12:52 -05:00
Andrews Medina
9325f2ca6d
add circus support
2012-11-29 00:15:01 -02:00
Adam Hutchison
7ad41da592
Since JRuby 1.9 doesn't require posix/spawn, only follow that path if JRuby is loaded and running in 1.8 mode.
2012-11-27 22:07:50 -07:00
Cyril Rohr
8ee7b7afdf
Remove explicit requirement on rubygems.
...
It's better to not force the use of a package manager. Better to add it
to the global RUBYOPT if needed. Also, this fixes a dependency issue
when using the .deb package (rubygems1.9.1 is not required, and should
not be).
2012-11-12 21:10:10 +01:00
Aditya Sanghi
2620b90808
Dont use shared_path variable before multistage has a chance at it
2012-11-02 14:04:27 +05:30
Paul Morton
89bdc3ab8e
Strip Windows Line Endings
2012-10-18 09:28:39 -07:00
Paulo Luis Franchini Casaretto
61c222deb8
Add timeout switch to CLI
2012-10-17 16:05:10 -03:00
David Dollar
8b49256175
0.60.2
2012-10-08 10:47:00 -04:00
David Dollar
73fc059634
Merge pull request #273 from silviorelli/master
...
Fix for fix on issue #260
2012-10-08 07:46:16 -07:00
Silvio Relli
f7b7029cc0
Fix for nil value on io select loop, fixes #260
2012-10-08 16:40:37 +02:00
David Dollar
6c931ea15e
0.60.1
2012-10-08 10:30:25 -04:00
Silvio Relli
9da4e38209
Cleaner fix for high cpu load issue, fixes #260
2012-10-08 16:05:20 +02:00
Silvio Relli
5d9dfd294e
Patch for high cpu load issue
2012-10-08 11:52:39 +02:00
David Dollar
1153fb0f0c
0.60.0
2012-09-25 12:38:01 -05:00
David Dollar
f69c755d9a
Merge pull request #262 from dpiddy/foreman-run-from-procfile
...
foreman run can run things from the Procfile like heroku run.
2012-09-25 10:37:25 -07:00
David Dollar
64f0749d16
0.59.0
2012-09-15 11:49:46 +09:00
Kevin McAllister and Kevin McAllister
7b4eabf0c5
Remove explicit wrapping of Shellwords.escape in double quotes
...
According to http://www.ruby-doc.org/stdlib-1.9.3/libdoc/shellwords/rdoc/Shellwords.html#method-c-shellescape
"Note that a resulted string should be used unquoted and is not
intended for use in double quotes nor in single quotes."
2012-09-14 21:33:57 -04:00
Dan Peterson
e99f3173ef
foreman run can run things from the Procfile like heroku run.
2012-09-14 10:43:03 -03:00
David Dollar
6c04dab649
0.58.0
2012-09-14 18:10:05 +09:00
David Dollar
96e26e7412
dont set HOME
2012-09-14 17:44:32 +09:00
David Dollar
a2c03cc402
Merge pull request #217 from danielfarrell/capistrano
...
Add capistrano export support
2012-09-14 01:42:34 -07:00
David Dollar
803115c0c4
Merge pull request #226 from alachaum/master
...
CLI: fix directory option
2012-09-14 01:41:36 -07:00
David Dollar
a4343187ad
Merge pull request #239 from indrekj/master
...
Use path and env variables in the inittab export
2012-09-14 01:41:18 -07:00