Transmission 2.2x crash on optware: EVENT_NOEPOLL
On some optware systems transmission randomly crashes due old version of libevent installed.
It can be solved with 3 easy steps:
if you don’t have nano installed:
ipkg install nano
1) then edit the script:
nano /opt/etc/init.d/S90transmission-daemon
2) add this to the first line of your script:
EVENT_NOEPOLL=1; export EVENT_NOEPOLL
mine looks like this:
#!/bin/sh
#
# Startup script for transmissionEVENT_NOEPOLL=1; export EVENT_NOEPOLL
CONFIGPATH=/YourPath/config
case $1 in
start)
# update blocklist
echo “updating blocklist”
cd ${CONFIGPATH}/blocklists
if wget -q -N –tries=3 –timeout=10 http://update.transmissionbt.com/level1.gz
then
if test -f level1.gz; then
rm level1
gunzip level1.gz
chmod go+r level1
fi
else
echo “Error $?. Blocklist NOT updated.”
fi# start transmission
echo “starting transmission”
nice /opt/bin/transmission-daemon -g ${CONFIGPATH}
;;stop)
if [ -n "`pidof transmission-daemon`" ]; then
echo “stopping transmission”
kill -9 `pidof transmission-daemon`
fi
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;*)
echo “usage: $0 (start|stop|restart|force-reload)”
exit 1
esac
3) then start transmission-daemon
/opt/etc/init.d/S90transmission-daemon start
happy downloading!
