diff --git a/lib/rdk/getDeviceDetails.sh b/lib/rdk/getDeviceDetails.sh index ef9ff622..3ec0891a 100755 --- a/lib/rdk/getDeviceDetails.sh +++ b/lib/rdk/getDeviceDetails.sh @@ -562,7 +562,8 @@ lock() done echo "$$" > $lockPidFile logMsg "lock acquired successfully" - trap 'unlock "active process"' 0 1 13 15 &>/dev/null + trap 'unlock "active process"' 0 1 13 &>/dev/null + trap 'exit 0' 15 &>/dev/null } unlock() diff --git a/systemd_units/update-device-details.service b/systemd_units/update-device-details.service index bc6278b3..c68bc0c9 100644 --- a/systemd_units/update-device-details.service +++ b/systemd_units/update-device-details.service @@ -26,7 +26,6 @@ Type=forking RemainAfterExit=yes SyslogIdentifier="getDeviceDetails" ExecStart=/bin/sh -c '/lib/rdk/getDeviceDetails.sh "" "" "true" &' -ExecStop=/bin/kill -9 $MAINPID TimeoutStopSec=3 [Install]