ryanb / xapit-sync

Rails plugin to automatically reload a Xapian database when models change.
MIT License
12 stars 3 forks source link

Customize location of PID file #1

Open ryanb opened 15 years ago

ryanb commented 15 years ago

Allow PID file location to be customized:

XapitSync.pid_path = "#{Rails.root}/tmp/custom_path/xapit_sync.pid"

The directories should be created if they do not exist.

Also, the path should default to tmp/pids/xapit_sync.pid instead of tmp/xapit_sync.pid.