~rharding/charms/precise/juju-gui/update-nagios

« back to all changes in this revision

Viewing changes to config/juju-api-agent.conf.template

  • Committer: Rick Harding
  • Date: 2014-01-15 14:50:46 UTC
  • mfrom: (147.1.8 remove-pyjuju)
  • Revision ID: rick.harding@canonical.com-20140115145046-lyh9879k9x8hwb8i
Remove support for PyJuju and rapi from charm.

- Removes the support for running rapi/pyjuju.
- Removes the agent used to communicate with zookeeper.
- Removes anything pertaining to zookeeper.
- Attempts to clean up docs and such to make sense with pure juju-core.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
description "Juju API agent"
2
 
author "Canonical"
3
 
 
4
 
start on runlevel [2345]
5
 
stop on runlevel [!2345]
6
 
 
7
 
env JUJU_ZOOKEEPER={{zookeeper}}
8
 
 
9
 
# Fix for bug 1130681: when the environment sets "juju-origin: lp:juju",
10
 
# easy_install mucks sys.path and the juju libs are not found, unless we
11
 
# change to their directory so that it comes first in sys.path.
12
 
chdir {{juju_dir}}
13
 
 
14
 
# Use --nodaemon so that upstart can correctly retrieve the process ID.
15
 
exec /usr/bin/python -m juju.agents.api --nodaemon --port {{port}} \
16
 
    --logfile /var/log/juju/api-agent.log \
17
 
    --session-file /var/run/juju/api-agent.zksession \
18
 
    --secure --keys {{keys}} {{if read_only}} --read-only {{endif}}