Lonnie Olson <[EMAIL PROTECTED]> writes:

> On Jul 9, 2006, at 9:59 PM, Edward C. Cheadle wrote:
>
>> I was installing djbdns using  ports and have run into an issue.  I
>> think it is more to do with understanding how to find information
>> than it is with installing sw.
>>
>> I installed djbdns, and it would not work.  The svscan daemon would
>> not start.  I backed off and installed just daemontools and again
>> the daemon would not start.
>>
>> I tried looking through the documentation.  I assumed that there
>> was a startup command like there is for apache. I could not find
>> any reference for starting it anywhere, so I tried adding
>> svscan_enable="YES" to the rc.conf file. This did not work.
>
> Explain what "did not work" means.  When you try to start it normally
> /usr/local/etc/rc.d/svscan.sh start` what happens?

The first place to check when applications won't start are the logs in
/var/log.  Running this might provide some insight as to what's (not)
happening:

# grep -r svscan /var/log | less

>> Finally I downloaded daemontools from the website and ran the
>> installer. When I restarted the machine, indeed the svscan daemon
>> is running as advertised.  In the /etc/rc.local file it put the
>> command:
>> csh -cf  '/command/svscanboot &'

Typically, you'll want to use the scripts in /etc/rc.d and
/usr/local/etc/rc.d in favor of /etc/rc.local.  If you can get the
above to work for the time being (and it keeps users happy) then fine,
but I would strongly recommend persisting until you can get the rc.d
scripts to work.  It's worth it. ;-)

> The daemontools port installs an rc script into /usr/local/etc/ rc.d/.
> You can read this script to discover if there is anything you  left
> out.  I read the startup script, and to start it, it requires  two
> items.
> 1. svscan_enable="YES" in /etc/rc.conf
> 2. /var/service must exist.
>
> Try starting it using `/usr/local/etc/rc.d/svscan.sh start`, and
> report back any output.

You can also run this:

# /usr/local/etc/rc.d/svscan.sh rcvar

This will give you a list of variables you can place in /etc/rc.conf.
There may be additional options you're missing.

Of course, you'd miss out on the fact that /var/service needs to exist
before starting, but it's still quick and handy. ;-)

If it still doesn't start, I'd say that it's likely a configuration
issue and you'll want to step through the installation process:

http://cr.yp.to/djbdns/install.html

Paths might be a little different, as like Lonnie mentioned, FreeBSD
installs 3rd party stuff into /usr/local by default.

-- 
Anthony Chavez                               Greater Utah BSD User Group
mailto:[EMAIL PROTECTED]                                   http://gubug.org/

Attachment: pgp810O6RIZH6.pgp
Description: PGP signature

_______________________________________________
gubug mailing list
[email protected]
https://gubug.org/mailman/listinfo/gubug

Reply via email to