ServiceManager
The ServiceManager is a part of the custom firmware. It separates new services from old ones to prevent collisions.
Services
There are two kinds of services. Normal Services are those which have Start/Stop buttons and load/save configuration files (like SSH or Mediatomb). Generic Services are those which doesn't fit into this schema (e.g. Text-Editor, Encryption).
Normal Services are always grouped to a category. For example SSH and Telnet are grouped together to the category net. Mediatomb uses the category multimedia.
Generic Services are not grouped and therefore don't use a category.
To add new Services visit the following pages:
General
Addressing
(Generic) Services are addressed by a URL fragment identifier.
Normal services require a category. These services are addressed by the concatenation of the keyword 'services_' and the name of the category.
The following examples demonstrates the addressing of normal services:
http://lg-nas/en/sm/SrvMgr.php#services_net http://lg-nas/en/sm/SrvMgr.php#services_multimedia http://lg-nas/en/sm/SrvMgr.php#services_somethingelse
Generic services are addressed by their name. Examples:
http://lg-nas/en/sm/SrvMgr.php#editor http://lg-nas/en/sm/SrvMgr.php#dm-crypt
Names
The name of a service has to be unique.
Directory structure
All XML and PHP files are located at:
/var/www/en/sm/services_xml/ /var/www/en/sm/services_php/
