FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › General Discussion › Firefly now running on unmodifed Linkstation Live/Pro › Reply To: Firefly now running on unmodifed Linkstation Live/Pro
@bawbagg wrote:
I posted a detailed howto on the Linkstation forums – thread is http://forum.linkstationwiki.net/viewtopic.php?f=39&t=3509
I’ve been playing with the Firefly package that’s detailed in the howto, and determined that /etc/init.d/firefly doesn’t support the restart parameter. This can be fixed by editing /etc/init.d/firefly and changing this:
restart)
stop
start
;;
To this:
restart)
$0 stop
$0 start
;;
I guess for convention’s sake /etc/init.d/firefly should be renamed /etc/init.d/firefly.sh…
Also, having looked at one of Kaiten’s posts elsewhere (and assuming the above edit has been made and that /etc/init.d/firefly has been renamed /etc/init.d/firefly.sh), I’ve determined that you can set daemonwatcher to automatically restart Firefly it it’s stopped running by adding the following to /etc/daemonwatch.list:
/var/run/mt-daapd.pid /etc/init.d/firefly.sh restart