If you continue with your codebase, here are some things I ran into:
"service ddclient stop" does not work in precise, and which causes multiple ddclients to run even in the simple case, so I had to "fix" the init script or start/stop it manually w/o init. I chose to "fix" the script in the install hook.
One thing I did in my script as well was rather than setting the config option every time I want to associate w/ ddclient,
I grab the servicename as the hostname. Since config-changed is never called on an add-relation I build the config file
in a juju-info hook.
Looks like we had the same idea and could merge these idea/branches
https:/ /code.launchpad .net/~david- duffey/ charms/ precise/ ddclient/ trunk
If you continue with your codebase, here are some things I ran into:
"service ddclient stop" does not work in precise, and which causes multiple ddclients to run even in the simple case, so I had to "fix" the init script or start/stop it manually w/o init. I chose to "fix" the script in the install hook.
One thing I did in my script as well was rather than setting the config option every time I want to associate w/ ddclient,
I grab the servicename as the hostname. Since config-changed is never called on an add-relation I build the config file
in a juju-info hook.
David