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
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
Michael Granger
0b5c1f919e
Fix spec encoding problem under Ruby 2.0.0.
2013-03-04 13:03:13 -08:00
Kentaro Kuribayashi
8d1e3a849f
Fixed specs to pass.
2013-02-21 11:52:37 +09:00
Kentaro Kuribayashi
5ef8bbdbe3
Permit underscore for command name in Procfile.
2013-02-21 11:30:59 +09:00
Andy Morris
9f3b903085
Prevent upstart export from deleting similarly named upstart files
2013-01-25 00:24:04 -06: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
Andrews Medina
9325f2ca6d
add circus support
2012-11-29 00:15:01 -02: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
Kevin McAllister
8fbee31a2d
Remove expectation of double quotes around environment variables from
...
test comparisons
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
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
David Dollar
98af1f0943
Merge pull request #261 from martinisoft/launchd_environment
...
Launchd environment
2012-09-14 01:34:35 -07:00
David Dollar
af2d4762a8
Merge pull request #250 from szimek/249_multiline_strings
...
Handle multiline strings in .env file
2012-09-14 01:34:10 -07:00
Aaron Kalin
1d06124457
Add StandardOutPath to launchd export
2012-09-11 15:04:15 -05:00
Aaron Kalin
698e6ae092
Add command argument string splitting
...
launchd uses exec() under the hood when you specify ProgramArguments
or Program so you must break apart program arguments into separate
strings in an array or the command will fail
2012-09-10 19:10:47 -05:00
Aaron Kalin
c617ddb3b2
Cleanup launchd exporter
...
Also suppresses the deprecation warning for the launchd exporter when
using port instead of engine.port_for
2012-09-10 18:21:51 -05:00
Aaron Kalin
f29bf49a35
Add support for setting environment variables
2012-09-05 18:27:10 -05:00
Omar Khan
574e852710
foreman run should exit with the same code as its command
2012-08-24 16:50:05 +01:00
Aditya Sanghi
ee761ff098
Another fix for PR #229
2012-08-21 20:16:28 +05:30
Szymon Nowak
7d6de5b2a7
Handle multiline strings in .env file
2012-08-14 11:09:21 +02:00
Aditya Sanghi
cc4306492e
run on reboot works with network-interface not network
2012-08-12 14:17:39 +05:30
Indrek Juhkam
8b204db2f0
Use path and env variables in the inittab export
2012-07-31 21:44:31 +03:00
David Dollar
7d9c2b2ac4
fix upstart export specs
2012-07-24 10:50:34 -04:00
David Dollar
4a732abd77
remove debugging code
2012-07-10 15:06:22 -04:00
Wojciech Wnętrzak
b1a2a4a0cd
added command for displaying foreman version
2012-06-12 17:16:35 +02:00
David Dollar
0df1a4d784
use bash
2012-06-10 23:12:44 -04:00
David Dollar
51a704939e
massive refactoring for programmatic control and stability
2012-06-10 22:58:09 -04:00
Henry Hsu
065bbf1cd8
Only run tmux specs if tmux is installed
2012-06-07 22:14:47 -07:00
Henry Hsu
f745b16217
Add support for starting procfile in tmux session
2012-06-07 22:12:52 -07:00
David Dollar
efd9e2119b
Merge pull request #173 from Viximo/feature/escape-env
...
Quote and escape environment variables in upstart templates
2012-06-07 19:43:20 -07:00
David Dollar
bf9bdbf118
Merge pull request #194 from maxpow4h/master
...
Added launchd to exporters
2012-06-07 19:41:23 -07:00
Daniel Brockman
3ea5de42aa
Fix multi-word argument handling in foreman run.
2012-06-06 15:36:59 +02:00
Koen Van der Auwera
0b0324fed9
set port from .env if specified
2012-05-11 14:17:03 +02:00
Maxwell Swadling
3db1ad6fbc
Added launchd exporter
2012-05-04 15:21:16 +10:00
Patrick Tescher
2a896a0fb5
Add stop_grace_time to bluepill config. Fixes this error message:
...
Config Error: Stop_grace_time should be greater than the sum of stop_signals delays!
Changed bluepill spec example files to include stop_grace_time
2012-05-03 12:11:24 -07:00
David Dollar
3077857ab7
Merge pull request #191 from ged/profile_load_write_append
...
Add Procfile load/write/append API
2012-05-02 10:03:31 -07:00
Michael Granger
771489dec9
Remove spec obsoleted by 91a8704
2012-05-02 09:37:32 -07:00
Michael Granger
053ae8f0be
Add Profile load/write/append API
2012-05-02 09:30:57 -07:00
David Dollar
638005403f
clean up file/directory interaction, add some tests
2012-04-23 15:50:23 -04:00
David Dollar
ce3003b026
factor out wrap_environment
2012-04-20 17:40:53 -04:00
Raphael Randschau
b721fd894e
per default wrap every environment value in quotes
2012-04-20 21:15:43 +02:00
Raphael Randschau
b8ea6fd4b3
fix typo in spec description
2012-04-20 09:14:12 +02:00
Raphael Randschau
dbda63263b
fix supervisord export for environments containing commas
2012-04-20 09:11:25 +02:00
David Dollar
0b34f067cb
Revert "Merge pull request #176 from rtyler/feature/156-foreman-stop-command"
...
Rewriting using a better Process API
This reverts commit dbe51832b0 , reversing
changes made to 69216b4c5e .
2012-04-18 12:48:51 -04:00
R. Tyler Croy
48f764e347
Refactor #spawn_processes into #start(name)
...
When passed nil (aka ALL_PROCESSES) #start will start all processes in the
Procfile as per existing behavior
2012-04-10 20:35:59 -07:00
R. Tyler Croy
de62d0655e
Re-name the main Foreman::Engine method to #run to avoid a name collision with #start(name)
2012-04-10 20:35:59 -07:00
R. Tyler Croy
c705b5fbef
Add #stop method on Foreman::Engine for stopping certain named processes
...
This will make embedding foreman "nicer" since the embedder can then stop
a specific process (e.g. turning off a service for an integration fail-over test)
2012-04-10 20:10:51 -07:00