Resource Update
Some workers support update operation outside of worker timings. /usr/syno/sbin/synopkgheler should be used to accomplish this job. Below are the steps to update the resource:
- Update the file at
/var/packages/[package_name]/conf/resource
- Execute the command
/usr/syno/sbin/synopkghelper update [package_name] [resource_id]
to trigger updating procedure.
For example, suppose a package allows the user to edit its listening port and needs to update correponding network settings:
- User submits new port to the application
- The application updates the file at
/var/packages/[package_name]/conf/resource
- The application executes the command
/usr/syno/sbin/synopkghelper update ${package} port-config
, then theport-config
worker will read the config and reload network settings.
NOTE Not all resource support update operation, please refer to the Updatable section of each resource.