Re: Question about Ventrilo port at startup

2006-11-14 Thread Miles Cannon

Hi Lowell,
The port maintainer wasn't able to reply to my first email, however, he
included the following in a reply to my post in questions which I've
included in case you should find it useful:
Check to make sure
your /usr/local/etc/ventrilo_srv.ini file can be read by the ventrilo
user/group.
chgrp ventrilo /usr/local/etc/ventrilo_srv.ini
Also make sure that the log file is writable by the ventrilo user.
chown /usr/local/ventrilo-server/ventrilo_srv.log

I still am having no luck with it starting up by itself on a reboot, which
is my main goal, however, I'll keep on trying and have asked another
question. Not sure what else is to be done other than enable it in
/etc/rc.conf
Thanks
Miles


On 11/13/06, Lowell Gilbert <[EMAIL PROTECTED]> wrote:


Miles <[EMAIL PROTECTED]> writes:

> 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"

That should be enough.  Can you try calling the script by hand, giving
the "forcestart" parameter?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question about Ventrilo port at startup

2006-11-13 Thread Anish Mistry
On Sunday 12 November 2006 15:23, Miles wrote:
> 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.
>
> 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.
I did reply, but your email address bounced.  Check to make sure 
your /usr/local/etc/ventrilo_srv.ini file can be read by the ventrilo 
user/group.
chgrp ventrilo /usr/local/etc/ventrilo_srv.ini
Also make sure that the log file is writable by the ventrilo user.
chown /usr/local/ventrilo-server/ventrilo_srv.log

-- 
Anish Mistry
[EMAIL PROTECTED]
AM Productions http://am-productions.biz/


pgpiZDuCEZBFg.pgp
Description: PGP signature


Re: Question about Ventrilo port at startup

2006-11-13 Thread Miles Cannon

I will try the forcestart option when I get home. I do know that the start
option has not worked for me, though, and I am not sure what I am doing
incorrectly. In any case, I'll let you know the results of this.
Thank you,
Miles


On 11/13/06, Lowell Gilbert <[EMAIL PROTECTED]> wrote:


Miles <[EMAIL PROTECTED]> writes:

> 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"

That should be enough.  Can you try calling the script by hand, giving
the "forcestart" parameter?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
[EMAIL PROTECTED]"


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question about Ventrilo port at startup

2006-11-13 Thread Lowell Gilbert
Miles <[EMAIL PROTECTED]> writes:

> 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"

That should be enough.  Can you try calling the script by hand, giving
the "forcestart" parameter?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Question about Ventrilo port at startup

2006-11-12 Thread Miles

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.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"