<< | Index | >>
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
I tried to use not shortcut, but also redirect (HTTP 303)
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' RubyTransHandlerODDB
::FlavoredTransHandler.instance
And created dummy state class for redirect.