Thanks Clint, this is an idea I had six months ago and the charm contest got me to finally play with charms :)
On the question about options... "daemon" should remain a string, because it is possible to use "5m", meaning five minutes.
I chose all the options to be the same as found as command line or config file options in ddclient itself, I agree "daemon" is confusing. In ddclient, daemon=0 means to not run as a daemon, and daemon=300 is seconds, deamon=5m is in minutes, etc.
Here is the documentation from ddclient on that option:
-daemon delay : run as a daemon, specify delay as an interval. (default: 0).
The daemon interval can be specified as seconds (600s), minutes (5m), hours (1h) or days (1d).
So, I would leave it as a string.... I think it may also make sense to leave it as "daemon" since all the other options are 1:1 with ddclient, and there may be an arguement for someone wanting to have the service start but ddclient not become a daemon. Agreed this should be documented better.
I'm hoping someone else can take this charm to the next level!
Thanks Clint, this is an idea I had six months ago and the charm contest got me to finally play with charms :)
On the question about options... "daemon" should remain a string, because it is possible to use "5m", meaning five minutes.
I chose all the options to be the same as found as command line or config file options in ddclient itself, I agree "daemon" is confusing. In ddclient, daemon=0 means to not run as a daemon, and daemon=300 is seconds, deamon=5m is in minutes, etc.
Here is the documentation from ddclient on that option:
-daemon delay : run as a daemon, specify delay as an interval. (default: 0).
The daemon interval can be specified as seconds (600s), minutes (5m), hours (1h) or days (1d).
So, I would leave it as a string.... I think it may also make sense to leave it as "daemon" since all the other options are 1:1 with ddclient, and there may be an arguement for someone wanting to have the service start but ddclient not become a daemon. Agreed this should be documented better.
I'm hoping someone else can take this charm to the next level!