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:
Stephan Raue 2013-02-06 13:41:43 -08:00
commit f8bbf18c09
4 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -25,5 +25,5 @@
( (
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
)& )&

View File

@ -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
)& )&

View File

@ -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
)& )&