During package installation and start-up, we often need to install config files (e.g. php.ini, apache.conf) or register services (e.g. port config, data share) onto the DSM. After setting package to run with lower privilege, you might lose the ability to do these job in the control scripts. Instead of writing these jobs in the installation scripts (preinst, postinst...), we provide a framework to simplify the process.
The config files and services that needs to be installed and registered are called resource. Each resource has a corresponding worker, which is responsible for installing the resource onto the DSM. Package developers just need to follow a predefined syntax and provide the resource specification, Package Center will then call the correspoding worker to finish the job.
NOTE If a package is using this framework, please remember to adjust the INFO file's
firmware to meet the worker's requirement