From owner-freebsd-questions@FreeBSD.ORG Sun Nov 12 20:25:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47E0216A4C2 for ; Sun, 12 Nov 2006 20:25:11 +0000 (UTC) (envelope-from milescann@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E6BB43D60 for ; Sun, 12 Nov 2006 20:24:08 +0000 (GMT) (envelope-from milescann@gmail.com) Received: by nf-out-0910.google.com with SMTP id l23so247339nfc for ; Sun, 12 Nov 2006 12:24:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:user-agent:mime-version:to:subject:content-type:content-transfer-encoding:from; b=AVtgbqG9gHSUdqGSBuoKR3yEqJ7Dvu+ILgiTravOlJvPeWoNKClkIfUIcq1Vp1Wrs0BBdvnEoDMqpOYhGn5+N4gdGBMssZd6q32hrqlL/KQ5YBePP7mtLb6K646bp7mjMmlOLv+aZt1sgbhWmnvm9HeEVJwCo6JD3f/oFCJCBiw= Received: by 10.78.200.3 with SMTP id x3mr5385450huf.1163363041127; Sun, 12 Nov 2006 12:24:01 -0800 (PST) Received: from ?192.168.2.3? ( [67.170.98.237]) by mx.google.com with ESMTP id 36sm7029500huc.2006.11.12.12.23.59; Sun, 12 Nov 2006 12:24:00 -0800 (PST) Message-ID: <455782C4.3080801@gmail.com> Date: Sun, 12 Nov 2006 12:23:32 -0800 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Miles Subject: Question about Ventrilo port at startup 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: Sun, 12 Nov 2006 20:25:11 -0000 Hi, Running 6.1 installed from the most recent .iso CD and sync'd ports through CVS, I wish to have the Ventrilo port start up as a daemon upon reboot, however, I'm not having any success in having this happen. I did some searching with Google and found little information specific to FreeBSD for Ventrilo at all, let alone a start up script. The port has one, but it seems to not work, rather it is that I do not know how to make it work properly. Trying to run it results in it exiting out without anything starting. Searching the Handbook, I found that section on rc.d, and modifying a sample script there I was able to get Ventrilo to start from the script, however, it still wouldn't work if I put a line in /etc/rc.conf ventrilo_enable="YES" And this was with the script into /usr/local/etc/rc.d/ as well. So what I am wondering is what I am missing and/or supposed to do with the script that came with the port given below? If someone could point me in the right direction, that would be great. Am I doing things correctly with /etc/rc.conf or is there something else I should be trying. In the meantime, I'll continue to work on learning shell scripting so that I can understand the scripts better. Thank you, Miles #!/bin/sh # PROVIDE: ventrilo # REQUIRE: NETWORKING # KEYWORD: FreeBSD shutdown [ -z "${ventrilo_enable}" ] && ventrilo_enable="NO" [ -z "${ventrilo_port}" ] && ventrilo_port="3784" [ -z "${ventrilo_srv}" ] && ventrilo_srv="localhost" . /etc/rc.subr prefix=/usr/local name=ventrilo homedir="${prefix}/ventrilo-server" pidfile="${homedir}/ventrilo_srv.pid" ventrilo_user=${name} command="${homedir}/ventrilo_srv" command_args="'-f${homedir}/ventrilo_srv' -d >/dev/null" extra_commands="info" info_cmd="ventrilo_info" rcvar=`set_rcvar` load_rc_config $name ventrilo_info() { if [ "$1" != "" ]; then ventrilo_srv="$1" fi if [ "$2" != "" ]; then ventrilo_port="$2" fi echo -n "Password []: " oldttymodes=`stty -g` stty -echo read ventrilo_passwd stty $oldttymodes ${homedir}/ventrilo_status -c2 "-t${ventrilo_srv}:${ventrilo_port}:${ventrilo_passwd}" } run_rc_command $* P.S. I did send a message to the maintainer, however, have not heard back in about 3 days and do not wish to pester him. He may never have received the message or might be unavailable.