Ubuntu 12.04 Serviio daemon script stop error
I have installed Serviio on Ubuntu 12.04 64bit and need a proper daemon script. i get errors on the one I have used from the forum that relates to the linux daemon scripts. Here is what happens when I run sudo services serviio stop
* Stopping Serviio media server daemon Serviio Media Server /etc/init.d/serviio: 42: [: x1 889: unexpected operator
/etc/init.d/serviio: 42: [: x1: unexpected operator
/etc/init.d/serviio: 42: [: x889: unexpected operator
/etc/init.d/serviio: 77: /etc/init.d/serviio: let: not found
/etc/init.d/serviio: 42: [: x1 889: unexpected operator
[fail]
after this my eth0 card gets disabled and the serviio goes in a loop trying to find a network connection showing the messages below in the serviio.log:
2012-09-29 22:24:32,534 INFO [MediaServer] Serviio server instance is already running
2012-09-29 22:24:34,326 WARN [DiscoveryAdvertisementNotifier] Could not advertise the device on any available NIC, will try again
2012-09-29 22:24:39,326 WARN [DiscoveryAdvertisementNotifier] Could not advertise the device on any available NIC, will try again
is there a proper daemon script for Ubuntu 12.04 that can start/stop etc the service on boot after the external USB devices in mounted/loaded (all my media is on the external device?
Also I am not an advanced linux/ubuntu user and need to get some step by step instruction on creating a functional user account for the serviio services to run instead of root.
your help will be greatly appreciated!!
Regards
Sameer Jaffer