Bug 104278 - dansguardian tries to start before squid
Summary: dansguardian tries to start before squid
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-10 21:30 UTC by Jeff Palmer
Modified: 2006-11-04 00:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Palmer 2006-10-10 21:30:16 UTC
Dansguardian attempts to start before squid is running.  Since dansguardian won't start if the proxy is unavialable,  it fails.

Fix: 

editing www/dansguardian/files/dansguardian.sh.in 
and removing the line
# BEFORE:  DAEMON
works for me.   this may not be the cleanest, or most efficient fix.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-10-10 21:49:04 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Freddie Cash 2006-10-10 22:31:10 UTC
Odd.  According to the output 
of "rcorder /etc/rc.d/* /usr/local/etc/rc.d/*" it is listed after squid, 
so it should be started after squid.  It is listed right after squid, but 
that shouldn't be a problem.

Removing the requirement on DAEMON moves the two startup scripts to after 
LOGIN in the list, but dansguardian is still listed after squid.

If this is more reliable for people using DansGuardian on FreeBSD, then 
I'm not against changing the files/dansguardian.sh.in file to read:

# PROVIDE: dansguardian
# REQUIRE: NETWORKING SERVERS squid
# BEFORE:
# KEYWORD: shutdown

This would also need to be done for 
www/dansguardian-devel/files/dansguardian.sh.in

-- 
Freddie Cash, LPIC-2 CCNT CCLP      Helpdesk / Network Support Tech.
School District 73                  (250) 377-HELP [377-4357]
fcash@sd73.bc.ca                    helpdesk@sd73.bc.ca
Comment 3 sat freebsd_committer freebsd_triage 2006-11-04 00:26:32 UTC
State Changed
From-To: feedback->closed

Committed, thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2006-11-04 00:26:35 UTC
sat         2006-11-04 00:26:23 UTC

  FreeBSD ports repository

  Modified files:
    www/dansguardian/files dansguardian.sh.in 
    www/dansguardian-devel/files dansguardian.sh.in 
  Log:
  - Remove unnecessary "before: daemon" statement from rc.d scripts
  
  PR:             ports/104278
  Submitted by:   Jeff Palmer<scorpio@drkshdw.org>
  Approved by:    Freddie Cash <fcash@sd73.bc.ca> (maintainer)
  
  Revision  Changes    Path
  1.3       +1 -2      ports/www/dansguardian-devel/files/dansguardian.sh.in
  1.3       +1 -2      ports/www/dansguardian/files/dansguardian.sh.in
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"