User Tools

Site Tools


evergreen-admin:services-restart14

Restarting Services (Evergreen 1.4+)

This is a very very brief workflow for restarting services on an Evergreen 1.4 or above series. This, like the majority of documentation here, assumes a single-server brick with the services defined inside of a <localhost> block in 'opensrf.xml'. If you have the services defined within a real hostname, then do not use the '-l' flag for 'osrf_ctl.sh':

  1. Stop apache
    • As root:
      /etc/init.d/apache2 stop
  2. Stop the reporter daemon
    • as root:
      kill `ps wax | grep "Clark Kent" | grep -v grep | cut -b1-6`
      rm /tmp/reporter-LOCK
  3. Stop SIP
    • as opensrf:
      oils_sip.ctl -c /openils/conf/oils_sip.xml -a stop_sip
  4. Stop Evergreen services
    • as opensrf:
      osrf_ctl.sh -l -a stop_all
  5. verify services are all stopped (kill if needed)
    ps aux | grep OpenSRF
  6. start Evergreen services
    • as opensrf:
      osrf_ctl.sh -l -a start_all
  7. wait about 60 seconds
  8. test in srfsh
    • as opensrf:
      request open-ils.cstore open-ils.cstore.direct.actor.user.retrieve 1
      request open-ils.storage open-ils.storage.direct.actor.user.retrieve 1
  9. start apache
    • as root:
      /etc/init.d/apache2 start
  10. start SIP
    • as opensrf:
      oils_sip.ctl -c /openils/conf/oils_sip.xml -a start_sip
  11. start reporting datemon
    • as opensrf:
      clark-kent.pl -d > /dev/null 2>&1
evergreen-admin/services-restart14.txt · Last modified: 2009/10/22 06:03 by dbs

© 2008-2017 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a member of Software Freedom Conservancy.