~charmers/charms/precise/opentsdb/trunk

« back to all changes in this revision

Viewing changes to hooks/start

  • Committer: Robert Collins
  • Date: 2012-08-06 09:52:22 UTC
  • Revision ID: robertc@robertcollins.net-20120806095222-a6j4o14aghnde929
Create an upstart job for the service.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# i.e. 'service apache2 start'
5
5
# your temporary directory uses tmpfs
6
6
 
7
 
# Should this check if the relation is already set and if so spawn the process?
 
7
if [ -e /etc/init/opentsdb.conf ]; then
 
8
  juju-log "Stopping opentsdb"
 
9
  service opentsdb start
 
10
fi