~charmers/charms/precise/node-app/trunk

« back to all changes in this revision

Viewing changes to hooks/mongodb-relation-departed

  • Committer: Charles Butler
  • Date: 2015-09-04 15:55:49 UTC
  • Revision ID: chuck@dasroot.net-20150904155549-htzj9yonffc31ser
[r=lazypower] achiang - make stop/departed hooks idempotent

merge of https://github.com/charms/node-app/pull/1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
3
app_name=`config-get app_name`
4
 
service ${app_name} status && service ${app_name} stop
 
4
stop ${app_name} || true