Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Service Manager is a CCSP component which helps us to monitor the systemd process running on the device. There are two primary states defined for each systemd process "Running" and "Stopped". Using this component we can get to know all the system process currently running or stopped. Also we have the provision of Switching switching the states of the process processes on the device. This component uses a TR-181 object for the user to access the list of all the running processes and alter their state. 

...

No Format
Device.X_RDKCENTRAL_COM_ServiceAgent.Services.{i}.Name
Device.X_RDKCENTRAL_COM_ServiceAgent.Services.{i}.GoalState

We can configure the state of a process by setting the parameter "Device.X_RDKCENTRAL_COM_ServiceAgent.Services.{i}.GoalState". 

For Example to Start a systemd process lets say with index 1,

    $ dmcli eRT setv Device.X_RDKCENTRAL_COM_ServiceAgent.Services.1.GoalState string Running

Similarly to stop a systemd process use the following

    $ dmcli eRT setv Device.X_RDKCENTRAL_COM_ServiceAgent.Services.1.GoalState string Stopped