summaryrefslogtreecommitdiff
path: root/srvcfg-manager
AgeCommit message (Collapse)AuthorFilesLines
2019-06-18srvcfg-mgr: Use poll method to trigger initRichard Marian Thomaiyar3-10/+40
Latest up-stream sync causes issue, due to which unable to receive StartupFinished signal from systemd1. Hence triggering the poll method too, so service will be able to init, once all units are loaded by systemd1 Tested: 1. Verified objects are exposed during boot-up and working as expected Change-Id: I0757faf50f8d8915d4641d1dbd6e13f85420a913 Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
2019-06-07srvcfg: Updated for dynamic service/socket mgmtRichard Marian Thomaiyar7-382/+763
Fixed srvcfg crash manager issue, by doing the service & socket unit file queries dynamically and exposing the objects to be controlled. This takes care of instanced service & socket files like phosphor-ipmi-net@eth0 or phosphor-ipmi-net@eth1 dynamically. Tested: 1. Verified as per the base service name, all the instanced service & socket names are dynamically queried and exposed 2. Made sure to list the disabled services thorugh this method 3. Made sure new services listed after fw-update are also exposed as objects 4. Verfied phosphor-ipmi-net@eth0 port change using ipmitool -p <newport> option 5. Verified permanent disable of the unit. 6. Verified run time enable / disable of the service. 7. Verified phosphor-ipmi-kcs service permanent & run time enable / disable Change-Id: Ib933a2fbff73eae4348a5940d350ae7972db03fb Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
2019-05-29Stop crashing srvcfg-mgr service - Temp FixRichard Marian Thomaiyar1-1/+1
Don't allow srvcfg-manager to start during the boot, as it was crashing for known issue. This will be enabled back, once the srvcfg-manager fixes under review are merged. Tested: Verified that srvcfg-manager.service is not called during the boot by default Change-Id: I57718990a058f1a8f4ba06f70b831cfe532db192 Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
2019-02-25srvcfg-manager State change issue fix.AppaRao Puli3-37/+72
srvcfg-manager State change is not working as it need to act on both .service and .socket files. Also used MaskUnitFiles and UnmaskUnitFiles to make changes persistent. Tested By: Disabled/Enabled the state and checked the service is stopping/starting properly. Also rebooted system and checked persistent behaviour. Checked changing port/channel and validated functionality. Change-Id: Ib0dce95db3926f5d700fb729aae7bdac1caf64e4 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
2019-02-13Fix: srvcfg-manager - ObjectManager base pathRichard Marian Thomaiyar1-1/+5
Create ObjectManager under root base path for srvcfg /xyz/openbmc_project/control/service, so that dynamic detection of service name can be performed under the above path with org.freedesktop.DBus.ObjectManager interface Unit-Test: 1. Verified that service executes fine after this change 2. Verified the detection of service name using GetObject from ObjectMapper Tested-by: 1. Verified the bmccontrolsevice ipmi command to initiate the https disable Change-Id: Id46f5bb348039bdeb69ece079ffeec45e88011cc Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
2019-01-18Control srvcfg manager service file correction.AppaRao Puli1-1/+2
Corrected the daemon file directory location and added syslog identifier. Tested By: Checked auto loading of srvcfg-manager daemon. Change-Id: If4b8f66cfe03f0745cbc7d16fd483f8be00e3860 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
2019-01-14Config service manager implementation.AppaRao Puli9-0/+1040
Added new service for managing the service(RMCP+, ssh, web) properties like state, port, channel etc. This is common service supports both systemctl and iptables. Example usage: Blocking specific service port and restricting network traffic on specific channels etc. Unit Test: - Changed port of RMCP+ service and validated. - Restricted network traffic on specific channel(eth0) and cross validated functionality. Change-Id: I835a4723bc5d5a65efb6ec329f74f3932e841522 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>