Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion recipes-devtools/meminsight/files/meminsight-runner.path
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2021 RDK Management
# Copyright 2025 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
10 changes: 7 additions & 3 deletions recipes-devtools/meminsight/files/meminsight-runner.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2021 RDK Management
# Copyright 2025 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -21,8 +21,12 @@
Description=MemInsight Memory Stats Runner

[Service]
Type=oneshot
Type=simple
RemainAfterExit=yes
Comment thread
gomathishankar37 marked this conversation as resolved.
Comment thread
gomathishankar37 marked this conversation as resolved.
Comment thread
gomathishankar37 marked this conversation as resolved.
EnvironmentFile=-/tmp/meminsight.env
ExecStart=/bin/sh -c 'PATH="/run/meminsight/usr/bin:/media/apps/meminsight:/media/apps/meminsight/usr/bin:$PATH"; meminsight $ARGS'
ExecStop=-/bin/rm /tmp/meminsight.env
ExecStop=-/bin/rm /tmp/.meminsight_upload /tmp/.meminsight_inprogress
ExecStopPost=-/bin/rm /tmp/meminsight.env /tmp/.enable_meminsight /nvram/.enable_meminsight
Comment thread
gomathishankar37 marked this conversation as resolved.
Restart=on-failure
RestartSec=30
Comment thread
gomathishankar37 marked this conversation as resolved.
Comment thread
gomathishankar37 marked this conversation as resolved.
Comment thread
gomathishankar37 marked this conversation as resolved.

29 changes: 29 additions & 0 deletions recipes-devtools/meminsight/files/meminsight-upload.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2025 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##########################################################################

[Unit]
Description=MemInsight upload path trigger
OnFailure=path-fail-notifier@%n.service
Comment thread
rosemarybennyy marked this conversation as resolved.

[Path]
PathExists=/tmp/.meminsight_upload
Comment thread
gomathishankar37 marked this conversation as resolved.
Unit=meminsight-upload.service

[Install]
WantedBy=multi-user.target
29 changes: 29 additions & 0 deletions recipes-devtools/meminsight/files/meminsight-upload.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2025 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##########################################################################

[Unit]
Description=MemInsight report upload sidecar

[Service]
Type=oneshot
RemainAfterExit=yes
Comment thread
gomathishankar37 marked this conversation as resolved.
Comment thread
gomathishankar37 marked this conversation as resolved.
Comment thread
gomathishankar37 marked this conversation as resolved.
Comment thread
gomathishankar37 marked this conversation as resolved.
ExecStart=/lib/rdk/upload_MemReports.sh

[Install]
WantedBy=multi-user.target
Loading
Loading