...
Apart from that, other files can be provided to give more information about the service. More details about these files are provided below.
Components
...
metainfo.xml
In the metainfo.xml file, one can first define the service and its components.
Complete reference can be found in the Writing metainfo.xml page.
A good reference implementation is the HDFS metainfo.xml.
Question: Is it possible to define multiple services in the same metainfo.xml?
Yes. Though it is possible, it is discouraged to define multiple services in the same service folder.
YARN and MapReduce2 are services that are defined together in the YARN folder. Its metainfo.xml defines both services.
Scripts
Hooks
Configuration
Files
Alerts
...