Skip to content

Commit

Permalink
Take advantage of the new katello-service script to stop/start all re…
Browse files Browse the repository at this point in the history
…quired services.
  • Loading branch information
Og B. Maciel committed Sep 23, 2012
1 parent 53d0386 commit 5eedd88
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions script/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ BDIR=$(readlink -f "$1")
cd $BDIR

#shut everything down
service katello stop
service katello-jobs stop
service pulp-server stop
service tomcat6 stop
service postgresql stop
service elasticsearch stop
katello-service stop

#extract files
tar --selinux -xzvf config_files.tar.gz -C /
Expand All @@ -30,9 +25,5 @@ echo 'db.dropDatabase();' | mongo pulp_database

mongorestore --host localhost mongo_dump/pulp_database/

service postgresql start
service tomcat6 start
service pulp-server start
service elasticsearch start
service katello-jobs start
service katello start
# Restart services
katello-service start

0 comments on commit 5eedd88

Please sign in to comment.