view · edit · sidebar · attach · print · history

20120512-xmlconv-data-shortcut-url

<< | Index | >>


Summary

  • Restored db for xmlconv

Index


Restore xmlconv data

NOTE

nagios config check

$ /usr/sbin/nagios -v /etc/nagios/nagios.cfg

1. Stop watching by nagios
2. Stop service with daemontools

   $ svc -d /service/name

3. Dump current DB with gzip

   $ sudo -u postgres pg_dump -h localhost -U postgres -E utf8 DBNAME | gzip > FILENAME.sql.gz

4. Drop DB

   $ sudo -u postgres dropdb DBNAME

5. Create DB

   $ sudo -u postgres createdb -E UTF8 -T template0 DBNAME

6. Restore DB

   $ zcat FILENAME.sql.gz | psql -U postgres DBNAME

7. Restart secvice with daemontools

   $ svc -h /service/name 

8. Check service state

   $ svstat /service/name

Create shorten_path event

I tried to use not shortcut, but also redirect (HTTP 303)

vhosts.d/oddb.org.conf
  RubyAddPath /usr/local/lib/ruby/gems/1.9.1/gems/sbsm-1.1.6/lib

  :before:
  #RubyRequire 'sbsm/trans_handler'
  #RubyTransHandler SBSM::FlavoredTransHandler.instance

  :update:
  RubyRequire 'util/trans_handler'
  RubyTransHandler ODDB::FlavoredTransHandler.instance

And created dummy state class for redirect.

Refs

view · edit · sidebar · attach · print · history
Page last modified on May 15, 2012, at 07:48 AM