Re: rc.d script not working for Xmms2 :-(

2010-01-08 Thread Kaya Saman
no just avoid using ${name} in the command. name is just a label used for creating unique variable names you can use in rc.conf, it doesn't have to match any binary. ___ Thanks we're getting closer but some thing's still hinky! rd1# /usr/local

Re: rc.d script not working for Xmms2 :-(

2010-01-08 Thread RW
On Fri, 08 Jan 2010 15:00:11 +0200 Kaya Saman wrote: > name="xmms2launcher" > rcvar=`set_rcvar` > command="/usr/local/bin/${name} -u kaya" > ... > So if I can't add the - does this mean that I have to create a link > to xmms2-launcher with name xmms2launcher?? no just avoid using ${name} in the

Re: rc.d script not working for Xmms2 :-(

2010-01-08 Thread Kaya Saman
Many thanks for the tips I am almost there but have a problem now! This is the output I get: ./xmms2launcher stop ./xmms2launcher: WARNING: cannot read shebang line from /usr/local/bin/xmms2launcher xmms2launcher not running? From my current file: rd1# cat xmms2launcher #!/bin/sh # PROVIDE:

Re: rc.d script not working for Xmms2 :-(

2010-01-08 Thread RW
On Fri, 08 Jan 2010 12:23:40 +0200 Kaya Saman wrote: > So far I have modified the script to look like this: > > #!/bin/sh You may need a PROVIDE LINE e.g. # PROVIDE:xmms2launcher > . /etc/rc.subr > > name="xmms2-launcher" You can't use "-" in shell variable names, so you shouldn't use

rc.d script not working for Xmms2 :-(

2010-01-08 Thread Kaya Saman
Hi guys, I'm just attempting to create a startup script for Xmms2 so that the service can autostart on boot! So far I have Google'd around and found very little, the most promising site was this: http://www.freebsd.org/doc/en/articles/rc-scripting/rcng-daemon.html which gives a script of t