Joseph Borg has proposed merging ~joeborg/nagios-charm/+git/adding-status:adding-status into nagios-charm:master.
Requested reviews: Nagios Charm developers (nagios-charmers) For more details, see: https://code.launchpad.net/~joeborg/nagios-charm/+git/adding-status/+merge/326949 -- Your team Nagios Charm developers is requested to review the proposed merge of ~joeborg/nagios-charm/+git/adding-status:adding-status into nagios-charm:master.
diff --git a/hooks/install b/hooks/install index 57ba12b..d2b5de2 100755 --- a/hooks/install +++ b/hooks/install @@ -2,6 +2,9 @@ set -uex +# Tell Juju we're installing +status-set maintenance 'Installing' + # 'apt-get update' can encounter transient failures when the archive servers # are being updated. To handle this case, just call it a few times. apt-get update || apt-get update || apt-get update @@ -64,3 +67,6 @@ service nagios3 start # For the admin interface open-port 80 + +# Tell Juju we're running +status-set active 'ready' \ No newline at end of file diff --git a/hooks/start b/hooks/start index 7847f7b..9443470 100755 --- a/hooks/start +++ b/hooks/start @@ -1,3 +1,4 @@ #!/bin/bash service nagios3 start || : service apache2 start || : +status-set active 'ready' \ No newline at end of file diff --git a/hooks/stop b/hooks/stop index 30bd12e..76d1c8e 100755 --- a/hooks/stop +++ b/hooks/stop @@ -1,3 +1,4 @@ #!/bin/bash service apache2 stop || : service nagios3 stop || : +status-set blocked 'stopped' \ No newline at end of file
-- Mailing list: https://launchpad.net/~nagios-charmers Post to : [email protected] Unsubscribe : https://launchpad.net/~nagios-charmers More help : https://help.launchpad.net/ListHelp

