<services>
<service name="service1">
<scripts>
<script href="...."></script>
<script>
<contents><![CDATA[
#!/bin/bash
...
]]</contents>
</script>
</scripts>
<parameter type="string" name="redmine_admin">
<value>#{admin_user}</value>
</parameter>
<return name="http_port"/>
</service>
</services>
I was talking with asalkeld about this recently, and one of the things
he mentioned is that the XML for services probably needs to include
information about 'how to start and stop the service', since there may
be different ways to do so.
Is that what you're referring to via the <script> tag? If so, what does
it mean for the script to be referred to via an href? Or would the href
there always be a local filesystem reference?
<contents> I would assume then is optional, since the script being used
to start/stop the service might be pre-installed (it could be a standard
lsb init script or a resource agent installed with the Matahari Services
Agent)
Just some thoughts... As you get into the services definition, just
make sure to keep sdake/asalkeld/beekhof in the loop since they can
probably be of assistance here since we deal with services all the time
in other HA contexts :)
Cheers,
Perry