yellow/Juju

Not logged in - Log In / Register

Revision 9 as of 2012-01-23 22:22:33

Clear message

Juju Development Notes

Notes for hacking on Juju

 $ ./test the.path.to.the.TestCase.and_test

Notes for working with Juju

Notes for working with Juju Charms

 $ juju set my-service option=$(uuencode /path/to/config/file)

(On the client)
root@ip-10-116-73-15:/# grep unit.hook.api /var/lib/juju/units/$UNITNAME/charm.log
2012-01-17 20:51:17,315: unit.hook.api@INFO: --> install
2012-01-17 20:51:20,588: unit.hook.api@INFO: Creating master in /tmp/buildbot
2012-01-17 20:51:23,539: unit.hook.api@INFO: <-- install
2012-01-17 20:51:24,883: unit.hook.api@INFO: --> config-changed
2012-01-17 20:51:25,561: unit.hook.api@INFO: Updating buildbot configuration.
2012-01-17 20:51:26,811: unit.hook.api@INFO: Config decoded and written.
2012-01-17 20:51:27,406: unit.hook.api@INFO: <-- config-changed
2012-01-17 20:51:28,793: unit.hook.api@INFO: --> start
2012-01-17 20:51:30,613: unit.hook.api@DEBUG: opened 8010/tcp
2012-01-17 20:51:31,258: unit.hook.api@INFO: <-- start

On LXC, or perhaps with the newest drop of juju, the log can be found on the client at  /var/log/juju/unit-$UNITNAME.log.

As a result, config-changed hooks shouldn't assume that a service has been started; they should check before restarting it.

/home/bac> ls -l /etc/alternatives/java
lrwxrwxrwx 1 root root 45 Jan 23 13:46 /etc/alternatives/java -> /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java*

Notes for creating Juju Charms