Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 2010 12:43:06 +0000
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: rc.d script not working for Xmms2 :-(
Message-ID:  <20100108124306.6b607750@gumby.homeunix.com>
In-Reply-To: <4B4707AC.7050908@netscape.net>
References:  <4B4707AC.7050908@netscape.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 08 Jan 2010 12:23:40 +0200
Kaya Saman <SamanKaya@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
 













Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100108124306.6b607750>