mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
Merge pull request #1855 from dagwieers/exec-daemon
When init starts daemons through a shell script, replace the shell altogether
This commit is contained in:
commit
f8bbf18c09
@ -134,9 +134,9 @@ mkdir -p $ADDON_HOME
|
|||||||
fi
|
fi
|
||||||
if [ "$PRELOAD_CAPMT_CA" == "true" ] ; then
|
if [ "$PRELOAD_CAPMT_CA" == "true" ] ; then
|
||||||
logger -t Tvheadend "### Preloading capmt_ca.so library ###"
|
logger -t Tvheadend "### Preloading capmt_ca.so library ###"
|
||||||
LD_PRELOAD=$ADDON_DIR/bin/capmt_ca.so $ADDON_BIN $TVHEADEND_ARG &>$LOG_FILE
|
LD_PRELOAD=$ADDON_DIR/bin/capmt_ca.so exec $ADDON_BIN $TVHEADEND_ARG &>$LOG_FILE
|
||||||
else
|
else
|
||||||
$ADDON_BIN $TVHEADEND_ARG &>$LOG_FILE
|
exec $ADDON_BIN $TVHEADEND_ARG &>$LOG_FILE
|
||||||
fi
|
fi
|
||||||
done &
|
done &
|
||||||
fi
|
fi
|
||||||
|
@ -24,6 +24,6 @@
|
|||||||
|
|
||||||
(
|
(
|
||||||
progress "starting ATVclient"
|
progress "starting ATVclient"
|
||||||
mkdir -p /storage/.cache
|
mkdir -p /storage/.cache
|
||||||
atvclient -m > /dev/null 2>&1
|
exec atvclient -m > /dev/null 2>&1
|
||||||
)&
|
)&
|
@ -25,5 +25,5 @@
|
|||||||
|
|
||||||
(
|
(
|
||||||
progress "monitoring udev events"
|
progress "monitoring udev events"
|
||||||
udevadm monitor -e > /dev/udev.log
|
exec udevadm monitor -e > /dev/udev.log
|
||||||
)&
|
)&
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
# starting ratpoison
|
# starting ratpoison
|
||||||
if [ -f /storage/.config/ratpoisonrc ]; then
|
if [ -f /storage/.config/ratpoisonrc ]; then
|
||||||
DISPLAY=:0.0 ratpoison -f /storage/.config/ratpoisonrc > /dev/null 2>&1
|
exec ratpoison -f /storage/.config/ratpoisonrc -d :0.0 > /dev/null 2>&1
|
||||||
else
|
else
|
||||||
DISPLAY=:0.0 ratpoison > /dev/null 2>&1
|
exec ratpoison -d :0.0 > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
)&
|
)&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user