backlog 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/bin/backlog +15 -4
- metadata +1 -1
data/History.txt
CHANGED
data/bin/backlog
CHANGED
@@ -25,15 +25,26 @@ config = File.open(config_file) {|f| YAML::load(f)} if File.exists? config_file
|
|
25
25
|
LOG_DIR = "#{INSTALL_DIR}/log"
|
26
26
|
PID_FILE = '/var/run/backlog.pid'
|
27
27
|
|
28
|
+
def start(config)
|
29
|
+
File.makedirs LOG_DIR unless File.exists? LOG_DIR
|
30
|
+
File.makedirs File.dirname(PID_FILE) unless File.exists? File.dirname(PID_FILE)
|
31
|
+
`mongrel_rails start -p #{config['port'] || 3000} -e production -c #{INSTALL_DIR} -d -m #{INSTALL_DIR}/config/mime_types.yaml -P #{PID_FILE} 1>#{LOG_DIR}/stdout.log 2>#{LOG_DIR}/stderr.log`
|
32
|
+
end
|
33
|
+
|
34
|
+
def stop(config)
|
35
|
+
`mongrel_rails stop -c #{INSTALL_DIR} -P #{PID_FILE}`
|
36
|
+
end
|
37
|
+
|
28
38
|
# See how we were called.
|
29
39
|
case ARGV[0]
|
30
40
|
when 'start':
|
31
|
-
|
32
|
-
File.makedirs File.dirname(PID_FILE) unless File.exists? File.dirname(PID_FILE)
|
33
|
-
`mongrel_rails start -p #{config['port'] || 3000} -e production -c #{INSTALL_DIR} -d -m #{INSTALL_DIR}/config/mime_types.yaml -P #{PID_FILE} 1>#{LOG_DIR}/stdout.log 2>#{LOG_DIR}/stderr.log`
|
41
|
+
start(config)
|
34
42
|
when 'stop':
|
35
|
-
|
43
|
+
stop(config)
|
36
44
|
when 'restart':
|
45
|
+
stop(config)
|
46
|
+
start(config)
|
47
|
+
when 'reload':
|
37
48
|
puts `mongrel_rails restart -c #{INSTALL_DIR} -P #{PID_FILE}`
|
38
49
|
when 'status'
|
39
50
|
puts `ps -ef | grep backlog`
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: backlog
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.5.
|
6
|
+
version: 0.5.4
|
7
7
|
date: 2007-08-06 00:00:00 +02:00
|
8
8
|
summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
|
9
9
|
require_paths:
|