Sign in
cobalt
/
external
/
rdk-oe
/
meta-rdk-video
/
refs/heads/hackathon2022/team-codebin
/
.
/
recipes-extended
/
ctrlm
/
files
/
restart_ctrlm.sh
blob: 18d6af069f7eddbb66ed8f72f6ecf7c8afed4e93 [
file
] [
edit
]
#!/bin/sh
# stop service if running
systemctl stop ctrlm
-
main
# kill app if running
CTRLM_PID
=
$
(
ps
|
grep controlMgr
|
grep
-
v grep
|
sed
's/^ *//'
|
cut
-
d
' '
-
f1
);
if
[
"$CTRLM_PID"
!=
""
];
then
kill
-
INT $CTRLM_PID
fi
/
usr
/
bin
/
controlMgr
&