DansGuardian depends on Squid in order to work; however, the dansguardian.sh script is called before the squid.sh script at boot time, causing DansGuardian to fail. This patch renames the dansguardian.sh script to start-dg.sh in order for it to execute after squid.sh.
Responsible Changed From-To: freebsd-ports->cy Orignator emailed me directly to take this PR.
Hello, fcash@lug.kamloops.net! On Fri, Oct 04, 2002 at 11:32:58AM -0700, you wrote: > >Number: 43660 > >Category: ports > >Synopsis: Port update: www/dansguardian fix for lack of auto-start. [dd] > >Description: > DansGuardian depends on Squid in order to work; however, the dansguardian.sh script > is called before the squid.sh script at boot time, causing DansGuardian to fail. This patch renames > the dansguardian.sh script to start-dg.sh in order for it to execute after squid.sh. [dd] > -+ @install -m 755 -o root -g wheel ./dansguardian.bsdv $(SYSVLOCATION)dansguardian.sh > ++ @install -m 755 -o root -g wheel ./dansguardian.bsdv $(SYSVLOCATION)start-dg.sh I think that common way is 000.dansguardian.sh. -- NEVE-RIPE Ukrainian FreeBSD User Group http://uafug.org.ua/
Freddie, Freddie,would you care to comment about startup script name or alter your patch please. Thanks. -- Cheers, Phone: 250-387-8437 Cy Schubert Fax: 250-387-5231 Team Leader, Sun/Alpha Team Email: Cy.Schubert@osg.gov.bc.ca Open Systems Group, CITS Ministry of Management Services Province of BC FreeBSD UNIX: cy@FreeBSD.org
State Changed From-To: open->feedback Require maintainer feedback on a comment made in this PR.
In message <3DB18C66.28208.F714558@localhost>, "Freddie Cash" writes: > On 19 Oct 2002 at 15:49, Cy Schubert - CITS Open Systems Group wrote: > > In message <200210161140.47073.fcash@bigfoot.com>, Freddie Cash writes: > > > On Tuesday 15 October 2002 05:48, you wrote: > > > > Freddie,would you care to comment about startup script name or alter > > > > your patch please. Thanks. > > > > Not sure what I'm supposed to be commenting on. The blurb in the PR wasn > 't > > > enough?? Where do I send the info?? > > > > I'm at a loss here. :) > > > The comment was about the name of the startup script. It was suggested > > that it be called 00dansguardian.sh instead of start-dg.sh. I don't > > think it makes a big difference, but I wanted to hear from you before I > > went ahead and committed your update. > > Ah, I see. The startup script for DansGuardian has to execute *after* > the startup script for Squid. Squid needs to be running before you can > start DansGuardian. > > The way it is now, DG is started first, errors out due to being unable > to connect to Squid, then Squid starts. Thus, at boot-time, > DansGuardian is not starting. > > To rectify this, there are two options: rename the Squid startup > script to execute first (000.squid.sh) or rename the DansGuardian > script to execute last (start-dg.sh). As I don't control the Squid > port, I figured it be easiest to just rename the DG startup script. > > There was a suggestion of calling the script 000.dansguardian.sh, but > that defeats the purpose and results in the status quo. There was > another suggestion of z00.dansguardian.sh, which would work, but looks > just horrible to me. I prefer start-dg.sh, as it looks nice and still > shows which daemon is being controlled. However, I am open to > suggestions. > > Cheers, > Freddie > fcash@Bigfoot.com Freddie, I will commit with start-dg.sh and put a comment in the commitlog to document why we are doing so. Thanks for answering the question. I've cc'd GNATS so we have a record of this in the GNATS database. -- Cheers, Phone: 250-387-8437 Cy Schubert Fax: 250-387-5231 Team Leader, Sun/Alpha Team Email: Cy.Schubert@osg.gov.bc.ca Open Systems Group, CITS Ministry of Management Services Province of BC FreeBSD UNIX: cy@FreeBSD.org
State Changed From-To: feedback->closed Committed. Thanks.