[uNSLUng] Twonkyvision started but killed

LinkSys wireless Music Player and LinkSys Media Adapter
Post Reply
Rotjeknor
Posts:1
Joined:Fri Jan 04, 2008 7:45 pm
[uNSLUng] Twonkyvision started but killed

Post by Rotjeknor » Tue Feb 05, 2008 8:39 pm

I've installed Unslung V2.3R63-uNSLUng-6.8-beta on the Linksys NSLU2. TwonkyMedia Version 4.4.3.1 is installed and working when I run it. However as soon as I close my ssh connection to the slug, Twonkyvision also gets shut down.

What I tried also is to start Twonkyvision after booting the device. Unfortunately this script is also not working, Twonkyvision is not running after boot, or run and straight away killed. The following script I use:

Code: Select all

#!/bin/sh

  # if the server is already running
  if [ -n "`pidof twonkymedia`" ]; 
  then
    # kill it
    /bin/killall twonkymedia 2>/dev/null

    # give the server time to shut down
    sleep 2
  fi
( cd /share/hdd/twonkyvision/;
  /share/hdd/twonkyvision/twonkymediaserver >twonkylog 2>&1)
So my question here is: how can I keep Twonkyvision running forever (or until I kill it) without keeping a ssh connection open? (And second to this: how can I make Twonkyvision running automatically after reboot?)

NSLU
Posts:4
Joined:Tue Jun 05, 2007 9:24 am

Post by NSLU » Sat Feb 09, 2008 8:51 am

You need to install an autostart-script:
change to /opt/etc/init.d

if it doesn't exist:
mkdir etc
cd etc
mkdir init.d
cd init.d


create autostart-file:
vi S99twonky
press 'i' to insert

#! /bin/sh
cd /yourpath/to/twonky
/yourpath/to/twonky/twonkymediaserver &
return 1

press 'esc'
press ':w' to write file
press ':q' to quit vi

reboot...

on http://www.7steps.de you can find a howto...

good luck!
-nslu-

Post Reply