From abc2e2751536a1a535b3abd4d1d1e2ca579a8392 Mon Sep 17 00:00:00 2001 From: tabbas651 Date: Tue, 29 Jul 2025 20:53:26 +0000 Subject: [PATCH 1/3] RDKEMW-6544:Add ExecStop to all the Thunder-Startup-Service Reason for change: Update the Thunder Startup Services to have ExecStop which sends curl request to Deactivate the given plugin Test Procedure: please referred ticket descriptions Risks: Medium Priority: P1 --- systemd/system/a.sh | 7 +++++ systemd/system/wpeframework-analytics.service | 1 + .../system/wpeframework-appmanager.service | 26 +++++++++---------- systemd/system/wpeframework-avinput.service | 1 + systemd/system/wpeframework-avoutput.service | 1 + systemd/system/wpeframework-bluetooth.service | 1 + .../system/wpeframework-cloudstore.service | 1 + .../system/wpeframework-cryptography.service | 1 + .../system/wpeframework-deviceinfo.service | 1 + .../system/wpeframework-displayinfo.service | 1 + .../wpeframework-displaysettings.service | 1 + .../wpeframework-firmwareupdate.service | 1 + .../system/wpeframework-frontpanel.service | 1 + .../system/wpeframework-hdcpprofile.service | 1 + .../system/wpeframework-hdmicecsink.service | 1 + .../system/wpeframework-hdmicecsource.service | 1 + .../wpeframework-lifecyclemanager.service | 1 + systemd/system/wpeframework-lisa.service | 1 + .../system/wpeframework-locationsync.service | 1 + .../wpeframework-maintenancemanager.service | 1 + systemd/system/wpeframework-messenger.service | 1 + systemd/system/wpeframework-monitor.service | 1 + systemd/system/wpeframework-network.service | 1 + .../wpeframework-networkmanager.service | 1 + systemd/system/wpeframework-ocdm.service | 1 + .../system/wpeframework-ocicontainer.service | 1 + .../wpeframework-packagemanager.service | 1 + .../wpeframework-persistentstore.service | 1 + .../system/wpeframework-playerinfo.service | 1 + .../system/wpeframework-powermanager.service | 1 + systemd/system/wpeframework-rdkshell.service | 1 + .../wpeframework-rdkwindowmanager.service | 1 + .../system/wpeframework-remotecontrol.service | 1 + .../wpeframework-runtimemanager.service | 1 + .../system/wpeframework-sharedstorage.service | 1 + .../wpeframework-storagemanager.service | 1 + systemd/system/wpeframework-system.service | 1 + .../wpeframework-systemaudioplayer.service | 1 + .../system/wpeframework-systemmode.service | 1 + systemd/system/wpeframework-telemetry.service | 1 + .../system/wpeframework-texttospeech.service | 1 + systemd/system/wpeframework-usbdevice.service | 1 + .../wpeframework-usbmassstorage.service | 1 + .../system/wpeframework-usersettings.service | 1 + .../system/wpeframework-voicecontrol.service | 1 + systemd/system/wpeframework-wifi.service | 1 + systemd/system/wpeframework-xcast.service | 1 + 47 files changed, 65 insertions(+), 13 deletions(-) create mode 100755 systemd/system/a.sh diff --git a/systemd/system/a.sh b/systemd/system/a.sh new file mode 100755 index 0000000..06b492b --- /dev/null +++ b/systemd/system/a.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +for file in wpeframework-*.service; do + echo "Processing $file..." + callsign=$(sed -n '/ExecStart=/ s/.*org\.rdk\.\(.*\)/\1/p' $file) + sed -i "/ExecStart=.*/a ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.$callsign" $file +done diff --git a/systemd/system/wpeframework-analytics.service b/systemd/system/wpeframework-analytics.service index 3d9228c..d50a3f8 100644 --- a/systemd/system/wpeframework-analytics.service +++ b/systemd/system/wpeframework-analytics.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.Analytics +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.Analytics diff --git a/systemd/system/wpeframework-appmanager.service b/systemd/system/wpeframework-appmanager.service index a6b024a..e74769e 100644 --- a/systemd/system/wpeframework-appmanager.service +++ b/systemd/system/wpeframework-appmanager.service @@ -1,13 +1,13 @@ -[Unit] -Description=WPEFramework AppManager Initialiser -Requires= wpeframework.service wpeframework-lifecyclemanager.service wpeframework-persistentstore.service wpeframework-packagemanager.service -After= wpeframework.service wpeframework-lifecyclemanager.service wpeframework-persistentstore.service wpeframework-packagemanager.service -ConditionPathExists=/opt/ai2managers -ConditionPathExists=/tmp/wpeframeworkstarted - -[Service] -Type=oneshot -RemainAfterExit=yes -ExecStartPre=-/usr/bin/ai2managers_prereqs.sh & -ExecStart=/usr/bin/PluginActivator org.rdk.AppManager - +[Unit] +Description=WPEFramework AppManager Initialiser +Requires= wpeframework.service wpeframework-lifecyclemanager.service wpeframework-persistentstore.service wpeframework-packagemanager.service +After= wpeframework.service wpeframework-lifecyclemanager.service wpeframework-persistentstore.service wpeframework-packagemanager.service +ConditionPathExists=/opt/ai2managers +ConditionPathExists=/tmp/wpeframeworkstarted + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStartPre=-/usr/bin/ai2managers_prereqs.sh & +ExecStart=/usr/bin/PluginActivator org.rdk.AppManager +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.AppManager diff --git a/systemd/system/wpeframework-avinput.service b/systemd/system/wpeframework-avinput.service index 4aa43c5..c548fe4 100644 --- a/systemd/system/wpeframework-avinput.service +++ b/systemd/system/wpeframework-avinput.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.AVInput +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.AVInput diff --git a/systemd/system/wpeframework-avoutput.service b/systemd/system/wpeframework-avoutput.service index f625c2e..feef7b8 100644 --- a/systemd/system/wpeframework-avoutput.service +++ b/systemd/system/wpeframework-avoutput.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.AVOutput +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.AVOutput diff --git a/systemd/system/wpeframework-bluetooth.service b/systemd/system/wpeframework-bluetooth.service index b3032ee..985e6fb 100644 --- a/systemd/system/wpeframework-bluetooth.service +++ b/systemd/system/wpeframework-bluetooth.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.Bluetooth +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.Bluetooth diff --git a/systemd/system/wpeframework-cloudstore.service b/systemd/system/wpeframework-cloudstore.service index dcb8637..cfb7bdb 100644 --- a/systemd/system/wpeframework-cloudstore.service +++ b/systemd/system/wpeframework-cloudstore.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.CloudStore +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.CloudStore diff --git a/systemd/system/wpeframework-cryptography.service b/systemd/system/wpeframework-cryptography.service index 0f9df25..5f921cd 100644 --- a/systemd/system/wpeframework-cryptography.service +++ b/systemd/system/wpeframework-cryptography.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.Cryptography +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.Cryptography diff --git a/systemd/system/wpeframework-deviceinfo.service b/systemd/system/wpeframework-deviceinfo.service index 4ec186a..7e09ff8 100644 --- a/systemd/system/wpeframework-deviceinfo.service +++ b/systemd/system/wpeframework-deviceinfo.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator DeviceInfo +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. diff --git a/systemd/system/wpeframework-displayinfo.service b/systemd/system/wpeframework-displayinfo.service index a5150ce..054ade8 100644 --- a/systemd/system/wpeframework-displayinfo.service +++ b/systemd/system/wpeframework-displayinfo.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator DisplayInfo +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. diff --git a/systemd/system/wpeframework-displaysettings.service b/systemd/system/wpeframework-displaysettings.service index 5a0d379..dd92280 100644 --- a/systemd/system/wpeframework-displaysettings.service +++ b/systemd/system/wpeframework-displaysettings.service @@ -6,3 +6,4 @@ After=dsmgr.service wpeframework-powermanager.service Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.DisplaySettings +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.DisplaySettings diff --git a/systemd/system/wpeframework-firmwareupdate.service b/systemd/system/wpeframework-firmwareupdate.service index 5e10c3d..937b0e3 100644 --- a/systemd/system/wpeframework-firmwareupdate.service +++ b/systemd/system/wpeframework-firmwareupdate.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.FirmwareUpdate +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.FirmwareUpdate diff --git a/systemd/system/wpeframework-frontpanel.service b/systemd/system/wpeframework-frontpanel.service index 60fd06e..a65bd37 100644 --- a/systemd/system/wpeframework-frontpanel.service +++ b/systemd/system/wpeframework-frontpanel.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.FrontPanel +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.FrontPanel diff --git a/systemd/system/wpeframework-hdcpprofile.service b/systemd/system/wpeframework-hdcpprofile.service index f474d88..8144f9b 100644 --- a/systemd/system/wpeframework-hdcpprofile.service +++ b/systemd/system/wpeframework-hdcpprofile.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.HdcpProfile +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.HdcpProfile diff --git a/systemd/system/wpeframework-hdmicecsink.service b/systemd/system/wpeframework-hdmicecsink.service index 2625cba..c9081ba 100644 --- a/systemd/system/wpeframework-hdmicecsink.service +++ b/systemd/system/wpeframework-hdmicecsink.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.HdmiCecSink +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.HdmiCecSink diff --git a/systemd/system/wpeframework-hdmicecsource.service b/systemd/system/wpeframework-hdmicecsource.service index ed4d8e1..f1a64ca 100644 --- a/systemd/system/wpeframework-hdmicecsource.service +++ b/systemd/system/wpeframework-hdmicecsource.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.HdmiCecSource +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.HdmiCecSource diff --git a/systemd/system/wpeframework-lifecyclemanager.service b/systemd/system/wpeframework-lifecyclemanager.service index 8c61374..7f44818 100755 --- a/systemd/system/wpeframework-lifecyclemanager.service +++ b/systemd/system/wpeframework-lifecyclemanager.service @@ -10,4 +10,5 @@ Type=oneshot RemainAfterExit=yes ExecStartPre=-/usr/bin/ai2managers_prereqs.sh & ExecStart=/usr/bin/PluginActivator org.rdk.LifecycleManager +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.LifecycleManager diff --git a/systemd/system/wpeframework-lisa.service b/systemd/system/wpeframework-lisa.service index c45c750..bd50c16 100644 --- a/systemd/system/wpeframework-lisa.service +++ b/systemd/system/wpeframework-lisa.service @@ -7,4 +7,5 @@ ConditionPathExists=/tmp/wpeframeworkstarted [Service] Type=oneshot ExecStart=/usr/bin/PluginActivator LISA +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. RemainAfterExit=yes diff --git a/systemd/system/wpeframework-locationsync.service b/systemd/system/wpeframework-locationsync.service index 0bdbabb..6c596cd 100644 --- a/systemd/system/wpeframework-locationsync.service +++ b/systemd/system/wpeframework-locationsync.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator LocationSync +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. diff --git a/systemd/system/wpeframework-maintenancemanager.service b/systemd/system/wpeframework-maintenancemanager.service index f004ea2..022cdd7 100644 --- a/systemd/system/wpeframework-maintenancemanager.service +++ b/systemd/system/wpeframework-maintenancemanager.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.MaintenanceManager +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.MaintenanceManager diff --git a/systemd/system/wpeframework-messenger.service b/systemd/system/wpeframework-messenger.service index e5f6685..59b10b9 100644 --- a/systemd/system/wpeframework-messenger.service +++ b/systemd/system/wpeframework-messenger.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator Messenger +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. diff --git a/systemd/system/wpeframework-monitor.service b/systemd/system/wpeframework-monitor.service index 959cf04..8524d46 100644 --- a/systemd/system/wpeframework-monitor.service +++ b/systemd/system/wpeframework-monitor.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator Monitor +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. diff --git a/systemd/system/wpeframework-network.service b/systemd/system/wpeframework-network.service index 9d01f29..fa948c6 100644 --- a/systemd/system/wpeframework-network.service +++ b/systemd/system/wpeframework-network.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.Network +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.Network diff --git a/systemd/system/wpeframework-networkmanager.service b/systemd/system/wpeframework-networkmanager.service index 3301923..a574aa1 100644 --- a/systemd/system/wpeframework-networkmanager.service +++ b/systemd/system/wpeframework-networkmanager.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.NetworkManager +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.NetworkManager diff --git a/systemd/system/wpeframework-ocdm.service b/systemd/system/wpeframework-ocdm.service index 2261dcf..29d0ef7 100644 --- a/systemd/system/wpeframework-ocdm.service +++ b/systemd/system/wpeframework-ocdm.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator -r 200 OCDM +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. diff --git a/systemd/system/wpeframework-ocicontainer.service b/systemd/system/wpeframework-ocicontainer.service index 4ef535f..68bb498 100644 --- a/systemd/system/wpeframework-ocicontainer.service +++ b/systemd/system/wpeframework-ocicontainer.service @@ -7,4 +7,5 @@ ConditionPathExists=/tmp/wpeframeworkstarted [Service] Type=oneshot ExecStart=/usr/bin/PluginActivator org.rdk.OCIContainer +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.OCIContainer RemainAfterExit=yes diff --git a/systemd/system/wpeframework-packagemanager.service b/systemd/system/wpeframework-packagemanager.service index 40d2b3c..6e23211 100644 --- a/systemd/system/wpeframework-packagemanager.service +++ b/systemd/system/wpeframework-packagemanager.service @@ -10,4 +10,5 @@ Type=oneshot RemainAfterExit=yes ExecStartPre=-/usr/bin/ai2managers_prereqs.sh & ExecStart=/usr/bin/PluginActivator org.rdk.PackageManagerRDKEMS +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.PackageManagerRDKEMS diff --git a/systemd/system/wpeframework-persistentstore.service b/systemd/system/wpeframework-persistentstore.service index 7cefe5e..df38e64 100644 --- a/systemd/system/wpeframework-persistentstore.service +++ b/systemd/system/wpeframework-persistentstore.service @@ -8,3 +8,4 @@ RequiresMountsFor=/opt/secure Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.PersistentStore +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.PersistentStore diff --git a/systemd/system/wpeframework-playerinfo.service b/systemd/system/wpeframework-playerinfo.service index 3ec94c6..b39fd4c 100644 --- a/systemd/system/wpeframework-playerinfo.service +++ b/systemd/system/wpeframework-playerinfo.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator PlayerInfo +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. diff --git a/systemd/system/wpeframework-powermanager.service b/systemd/system/wpeframework-powermanager.service index 8121070..c943a9c 100755 --- a/systemd/system/wpeframework-powermanager.service +++ b/systemd/system/wpeframework-powermanager.service @@ -7,5 +7,6 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.PowerManager +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.PowerManager [Install] WantedBy=multi-user.target \ No newline at end of file diff --git a/systemd/system/wpeframework-rdkshell.service b/systemd/system/wpeframework-rdkshell.service index 8573282..61b83c6 100644 --- a/systemd/system/wpeframework-rdkshell.service +++ b/systemd/system/wpeframework-rdkshell.service @@ -7,4 +7,5 @@ ConditionPathExists=/tmp/wpeframeworkstarted [Service] Type=oneshot ExecStart=/usr/bin/PluginActivator org.rdk.RDKShell +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.RDKShell RemainAfterExit=yes diff --git a/systemd/system/wpeframework-rdkwindowmanager.service b/systemd/system/wpeframework-rdkwindowmanager.service index 66cc3ce..e8df233 100755 --- a/systemd/system/wpeframework-rdkwindowmanager.service +++ b/systemd/system/wpeframework-rdkwindowmanager.service @@ -9,4 +9,5 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.RDKWindowManager +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.RDKWindowManager diff --git a/systemd/system/wpeframework-remotecontrol.service b/systemd/system/wpeframework-remotecontrol.service index 88ef326..a56257d 100644 --- a/systemd/system/wpeframework-remotecontrol.service +++ b/systemd/system/wpeframework-remotecontrol.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.RemoteControl +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.RemoteControl diff --git a/systemd/system/wpeframework-runtimemanager.service b/systemd/system/wpeframework-runtimemanager.service index 27d3550..6ef5512 100755 --- a/systemd/system/wpeframework-runtimemanager.service +++ b/systemd/system/wpeframework-runtimemanager.service @@ -9,4 +9,5 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.RuntimeManager +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.RuntimeManager diff --git a/systemd/system/wpeframework-sharedstorage.service b/systemd/system/wpeframework-sharedstorage.service index 7470c97..7893f08 100644 --- a/systemd/system/wpeframework-sharedstorage.service +++ b/systemd/system/wpeframework-sharedstorage.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.SharedStorage +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.SharedStorage diff --git a/systemd/system/wpeframework-storagemanager.service b/systemd/system/wpeframework-storagemanager.service index 3c3937c..14d29e8 100644 --- a/systemd/system/wpeframework-storagemanager.service +++ b/systemd/system/wpeframework-storagemanager.service @@ -9,4 +9,5 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.StorageManager +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.StorageManager diff --git a/systemd/system/wpeframework-system.service b/systemd/system/wpeframework-system.service index f5aea8c..80703b1 100644 --- a/systemd/system/wpeframework-system.service +++ b/systemd/system/wpeframework-system.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.System +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.System diff --git a/systemd/system/wpeframework-systemaudioplayer.service b/systemd/system/wpeframework-systemaudioplayer.service index 5277053..d2c2c4f 100644 --- a/systemd/system/wpeframework-systemaudioplayer.service +++ b/systemd/system/wpeframework-systemaudioplayer.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.SystemAudioPlayer +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.SystemAudioPlayer diff --git a/systemd/system/wpeframework-systemmode.service b/systemd/system/wpeframework-systemmode.service index bb8cc83..a65bfcb 100644 --- a/systemd/system/wpeframework-systemmode.service +++ b/systemd/system/wpeframework-systemmode.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.SystemMode +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.SystemMode diff --git a/systemd/system/wpeframework-telemetry.service b/systemd/system/wpeframework-telemetry.service index 05330b6..96b4541 100644 --- a/systemd/system/wpeframework-telemetry.service +++ b/systemd/system/wpeframework-telemetry.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.Telemetry +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.Telemetry diff --git a/systemd/system/wpeframework-texttospeech.service b/systemd/system/wpeframework-texttospeech.service index 6348963..56eced5 100644 --- a/systemd/system/wpeframework-texttospeech.service +++ b/systemd/system/wpeframework-texttospeech.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.TextToSpeech +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.TextToSpeech diff --git a/systemd/system/wpeframework-usbdevice.service b/systemd/system/wpeframework-usbdevice.service index d611182..5db3201 100644 --- a/systemd/system/wpeframework-usbdevice.service +++ b/systemd/system/wpeframework-usbdevice.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.UsbDevice +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.UsbDevice diff --git a/systemd/system/wpeframework-usbmassstorage.service b/systemd/system/wpeframework-usbmassstorage.service index 68e3878..d20d72f 100644 --- a/systemd/system/wpeframework-usbmassstorage.service +++ b/systemd/system/wpeframework-usbmassstorage.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.UsbMassStorage +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.UsbMassStorage diff --git a/systemd/system/wpeframework-usersettings.service b/systemd/system/wpeframework-usersettings.service index 232e15b..3e055c0 100644 --- a/systemd/system/wpeframework-usersettings.service +++ b/systemd/system/wpeframework-usersettings.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.UserSettings +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.UserSettings diff --git a/systemd/system/wpeframework-voicecontrol.service b/systemd/system/wpeframework-voicecontrol.service index b28a074..44ab7de 100644 --- a/systemd/system/wpeframework-voicecontrol.service +++ b/systemd/system/wpeframework-voicecontrol.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.VoiceControl +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.VoiceControl diff --git a/systemd/system/wpeframework-wifi.service b/systemd/system/wpeframework-wifi.service index 55f9c4f..583f852 100644 --- a/systemd/system/wpeframework-wifi.service +++ b/systemd/system/wpeframework-wifi.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.Wifi +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.Wifi diff --git a/systemd/system/wpeframework-xcast.service b/systemd/system/wpeframework-xcast.service index 7be90b2..eb50a32 100644 --- a/systemd/system/wpeframework-xcast.service +++ b/systemd/system/wpeframework-xcast.service @@ -7,3 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator org.rdk.Xcast +ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.Xcast From aa9e136c3243fe8ee2d27333c51dad9c33dde3ec Mon Sep 17 00:00:00 2001 From: tabbas651 Date: Tue, 29 Jul 2025 21:02:53 +0000 Subject: [PATCH 2/3] correct the some error in wpeframework * services --- systemd/system/wpeframework-deviceinfo.service | 2 +- systemd/system/wpeframework-displayinfo.service | 2 +- systemd/system/wpeframework-lisa.service | 2 +- systemd/system/wpeframework-locationsync.service | 2 +- systemd/system/wpeframework-messenger.service | 2 +- systemd/system/wpeframework-monitor.service | 2 +- systemd/system/wpeframework-ocdm.service | 2 +- systemd/system/wpeframework-playerinfo.service | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/systemd/system/wpeframework-deviceinfo.service b/systemd/system/wpeframework-deviceinfo.service index 7e09ff8..4536511 100644 --- a/systemd/system/wpeframework-deviceinfo.service +++ b/systemd/system/wpeframework-deviceinfo.service @@ -7,4 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator DeviceInfo -ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. +ExecStop=/lib/rdk/deactivate_plugin.sh DeviceInfo diff --git a/systemd/system/wpeframework-displayinfo.service b/systemd/system/wpeframework-displayinfo.service index 054ade8..923e183 100644 --- a/systemd/system/wpeframework-displayinfo.service +++ b/systemd/system/wpeframework-displayinfo.service @@ -7,4 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator DisplayInfo -ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. +ExecStop=/lib/rdk/deactivate_plugin.sh DisplayInfo diff --git a/systemd/system/wpeframework-lisa.service b/systemd/system/wpeframework-lisa.service index bd50c16..025aeaf 100644 --- a/systemd/system/wpeframework-lisa.service +++ b/systemd/system/wpeframework-lisa.service @@ -7,5 +7,5 @@ ConditionPathExists=/tmp/wpeframeworkstarted [Service] Type=oneshot ExecStart=/usr/bin/PluginActivator LISA -ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. +ExecStop=/lib/rdk/deactivate_plugin.sh LISA RemainAfterExit=yes diff --git a/systemd/system/wpeframework-locationsync.service b/systemd/system/wpeframework-locationsync.service index 6c596cd..21ba1ed 100644 --- a/systemd/system/wpeframework-locationsync.service +++ b/systemd/system/wpeframework-locationsync.service @@ -7,4 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator LocationSync -ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. +ExecStop=/lib/rdk/deactivate_plugin.sh LocationSync diff --git a/systemd/system/wpeframework-messenger.service b/systemd/system/wpeframework-messenger.service index 59b10b9..6fa90ae 100644 --- a/systemd/system/wpeframework-messenger.service +++ b/systemd/system/wpeframework-messenger.service @@ -7,4 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator Messenger -ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. +ExecStop=/lib/rdk/deactivate_plugin.sh Messenger diff --git a/systemd/system/wpeframework-monitor.service b/systemd/system/wpeframework-monitor.service index 8524d46..55bcc26 100644 --- a/systemd/system/wpeframework-monitor.service +++ b/systemd/system/wpeframework-monitor.service @@ -7,4 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator Monitor -ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. +ExecStop=/lib/rdk/deactivate_plugin.sh Monitor diff --git a/systemd/system/wpeframework-ocdm.service b/systemd/system/wpeframework-ocdm.service index 29d0ef7..3f9c6b4 100644 --- a/systemd/system/wpeframework-ocdm.service +++ b/systemd/system/wpeframework-ocdm.service @@ -7,4 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator -r 200 OCDM -ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. +ExecStop=/lib/rdk/deactivate_plugin.sh OCDM diff --git a/systemd/system/wpeframework-playerinfo.service b/systemd/system/wpeframework-playerinfo.service index b39fd4c..1e9658b 100644 --- a/systemd/system/wpeframework-playerinfo.service +++ b/systemd/system/wpeframework-playerinfo.service @@ -7,4 +7,4 @@ ConditionPathExists=/tmp/wpeframeworkstarted Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/PluginActivator PlayerInfo -ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk. +ExecStop=/lib/rdk/deactivate_plugin.sh PlayerInfo From dc2aed6850d510985e91ffb104f40a44374afe26 Mon Sep 17 00:00:00 2001 From: tabbas651 <74683978+tabbas651@users.noreply.github.com> Date: Wed, 30 Jul 2025 10:21:51 -0400 Subject: [PATCH 3/3] Delete systemd/system/a.sh --- systemd/system/a.sh | 7 ------- 1 file changed, 7 deletions(-) delete mode 100755 systemd/system/a.sh diff --git a/systemd/system/a.sh b/systemd/system/a.sh deleted file mode 100755 index 06b492b..0000000 --- a/systemd/system/a.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -for file in wpeframework-*.service; do - echo "Processing $file..." - callsign=$(sed -n '/ExecStart=/ s/.*org\.rdk\.\(.*\)/\1/p' $file) - sed -i "/ExecStart=.*/a ExecStop=/lib/rdk/deactivate_plugin.sh org.rdk.$callsign" $file -done