servicemanager

Created on June 21, 2022

Overview

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 the states of the 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. 

Object

Service Manager component uses the following object

Device.X_RDKCENTRAL_COM_ServiceAgent.

Parameters

The parameters defined as part of above object are

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
Go To Top