From owner-freebsd-questions@FreeBSD.ORG Fri Jan 8 16:45:28 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 359731065676 for ; Fri, 8 Jan 2010 16:45:28 +0000 (UTC) (envelope-from samankaya@netscape.net) Received: from imr-da05.mx.aol.com (imr-da05.mx.aol.com [205.188.105.147]) by mx1.freebsd.org (Postfix) with ESMTP id E7B558FC1D for ; Fri, 8 Jan 2010 16:45:27 +0000 (UTC) Received: from imo-da02.mx.aol.com (imo-da02.mx.aol.com [205.188.169.200]) by imr-da05.mx.aol.com (8.14.1/8.14.1) with ESMTP id o08Gj5pn021421; Fri, 8 Jan 2010 11:45:05 -0500 Received: from samankaya@netscape.net by imo-da02.mx.aol.com (mail_out_v42.5.) id 4.cc6.62bd83ef (37096); Fri, 8 Jan 2010 11:45:01 -0500 (EST) Received: from [172.16.1.2] (mail.reformkurumsal.com [212.156.209.87]) by cia-db07.mx.aol.com (v127.7) with ESMTP id MAILCIADB076-90e84b47610b31c; Fri, 08 Jan 2010 11:45:01 -0500 Message-ID: <4B47610A.9050101@netscape.net> Date: Fri, 08 Jan 2010 18:44:58 +0200 From: Kaya Saman User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090605 SeaMonkey/1.1.17 (Ubuntu-1.1.17+nobinonly-0ubuntu0.9.04.1) MIME-Version: 1.0 To: RW References: <4B4707AC.7050908@netscape.net> <20100108124306.6b607750@gumby.homeunix.com> <4B472C5B.1050902@netscape.net> <20100108134021.2c5a30a7@gumby.homeunix.com> In-Reply-To: <20100108134021.2c5a30a7@gumby.homeunix.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AOL-IP: 212.156.209.87 X-Mailer: Unknown (No Version) X-Spam-Flag: NO X-AOL-SENDER: samankaya@netscape.net Cc: freebsd-questions@freebsd.org Subject: Re: rc.d script not working for Xmms2 :-( X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2010 16:45:28 -0000 > > 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/etc/rc.d/xmms2d stop /usr/local/etc/rc.d/xmms2d: WARNING: cannot read shebang line from /usr/local/bin/xmms2d-launcher xmms2d not running? This is the latest incarnation of the script: #!/bin/sh # PROVIDE: xmms2d #xmms2d_enable="YES" . /etc/rc.subr name="xmms2d" rcvar=`set_rcvar` command="/usr/local/bin/xmms2d-launcher -u kaya" load_rc_config $name run_rc_command "$1" I gather I goofed up one part but which I cannot say!