Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi guys,
How do I get twonky to autostart? It has the starttwonky.sh scripts sitting in the default folder, not in the ffp/start one.
Thanks
Offline
this is the simple /ffp/start/twonky.sh script i made and am using it to autostart/start/stop twonky
#!/ffp/bin/sh # PROVIDE: twonky # REQUIRE: LOGIN . /ffp/etc/ffp.subr name="twonky" start_cmd="twonky_start" stop_cmd="twonky_stop" status_cmd="twonky_status" log_file="/web/log/twonkymedia.log" twonky_start() { echo "Starting twonky..." route add -net 224.0.0.0 netmask 240.0.0.0 dev egiga0 #/ffp/share/twonky/twonkymedia >$log_file 2>&1 & /ffp/share/twonky/twonkymedia & sleep 2 echo "twonky started." } twonky_stop() { if [ `twonky_temp_status` = "running" ]; then echo "Killing twonky..." killall twonkymedia sleep 2 echo "twonky killed." else echo "Nothing to do..." fi } twonky_status() { if [ -n "$(pidof twonkymedia)" ]; then echo "twonky running." else echo "twonky stopped." fi } twonky_temp_status() { if [ -n "$(pidof twonkymedia)" ]; then echo "running" else echo "stopped" fi } run_rc_command "$1"
Offline
nice script, how do i stop the server without having to do 'chmod a-x ..........' and restart the nas?
Offline
Hi SilentException. Thanks for the script. I copied it into notepad++ in unix format, saved it to the ffp/start directory, chowned it to root through an sftp connection and restarted the box but nothing...
Did you have to do anything else to get it going?
PS : I created the ffp/share/twonky directory will full privs.
Offline
doh, twonky has to be installed in /ffp/share/twonky
if you have it installed in other directory change it
@knireis:
if the script is +x you do
#/ffp/start/twonky.sh start
(to start)
#/ffp/start/twonky.sh stop
(to stop)
#/ffp/start/twonky.sh restart
(to restart)
if its not +x you can do it like:
#sh /ffp/start/twonky.sh start
...
...
...
Offline
All good now. I should have figured that out but....
Thanks
Offline