mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +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
|
||||
if [ "$PRELOAD_CAPMT_CA" == "true" ] ; then
|
||||
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
|
||||
$ADDON_BIN $TVHEADEND_ARG &>$LOG_FILE
|
||||
exec $ADDON_BIN $TVHEADEND_ARG &>$LOG_FILE
|
||||
fi
|
||||
done &
|
||||
fi
|
||||
|
@ -24,6 +24,6 @@
|
||||
|
||||
(
|
||||
progress "starting ATVclient"
|
||||
mkdir -p /storage/.cache
|
||||
atvclient -m > /dev/null 2>&1
|
||||
mkdir -p /storage/.cache
|
||||
exec atvclient -m > /dev/null 2>&1
|
||||
)&
|
@ -25,5 +25,5 @@
|
||||
|
||||
(
|
||||
progress "monitoring udev events"
|
||||
udevadm monitor -e > /dev/udev.log
|
||||
exec udevadm monitor -e > /dev/udev.log
|
||||
)&
|
||||
|
@ -30,8 +30,8 @@
|
||||
|
||||
# starting ratpoison
|
||||
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
|
||||
DISPLAY=:0.0 ratpoison > /dev/null 2>&1
|
||||
exec ratpoison -d :0.0 > /dev/null 2>&1
|
||||
fi
|
||||
)&
|
||||
|
Loading…
x
Reference in New Issue
Block a user