Starling YML file

2 views
Skip to first unread message

tomrossi7

unread,
Mar 4, 2009, 4:27:08 PM3/4/09
to starling
I can't find the different options for the Starling yaml file? Can we
use it to specify the pid location?

Thanks,
Tom

Geoff

unread,
Mar 18, 2009, 12:41:32 PM3/18/09
to starling
Yes you can specify the PID file, if you look at the source for the
lib/starling/starling_runner.rb you can see how the options are parsed
for the command line. The same form, with a couple changes, is used
for the YAML config, ie :logger = log_file and :path = queue_path

Command Switch YAML Config Label Type
--queue_path queue_path String
--host host String
--port port Integer
-d daemonize true|false
--pid pid_file String
--user user Integer
--group group Integer
--log log_file String
--syslog syslog_channel String
-v log_level Integer or String, if String
then is a Logger log_level; debug, info, warn, etc
--timeout timeout Integer

all these keys need to be under the 'starling' key, so your YAML file
would look like

---
starling:
queue_path: spool/starling
pid_file: pids/starling.pid
log_file: logs/starling.log
daemonize: true

I tried this with `starling` v0.9.8 but it didn't seem to like it with
daemonize, using `starling-starling` v0.9.9 it seems to work just fine
though.

Geoff
Reply all
Reply to author
Forward
0 new messages