rc.d script not working for Xmms2 :-(

RW rwmaillists at googlemail.com
Fri Jan 8 12:43:09 UTC 2010


On Fri, 08 Jan 2010 12:23:40 +0200
Kaya Saman <SamanKaya at netscape.net> 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 it here 

> rcvar=`set_rcvar`
> command="/usr/local/bin/${name}" -u kaya

The -u kaya needs to go in a <name>_flags variable
 












More information about the freebsd-questions mailing list