** Changed in: squid-deb-proxy (Ubuntu Maverick)
       Status: Confirmed => In Progress

** Description changed:

+ TEST CASE:
+ 1. use maverick
+ 2. install squid-deb-proxy
+ 3. reboot
+ 4. run "sudo service squid-deb-proxy-avahi status"
+ 5. verify that its in state stop/waiting
+ 
+ 6. install squid-deb-proxy from maverick-proposed
+ 7. reboot
+ 8. repeat step 4
+ 9. verify that its in state start/running now
+ 
  Binary package hint: squid-deb-proxy
  
  Here's the summary of the problem after system startup:
  
- 
- % sudo service squid-deb-proxy status      
+ % sudo service squid-deb-proxy status
  squid-deb-proxy start/running, process 1297
  
  % sudo service squid-deb-proxy-avahi status
  squid-deb-proxy-avahi stop/waiting
  
  As we see the squid-deb-proxy avahi advertiser does not start and no
  machine can see we have a deb proxy around. Both dependencies (avahi and
  squid-deb-proxy services) are running in my case. If I do 'service
  squid-deb-proxy-avahi start' it goes up without a problem... I have
  worked around it so the upstart script starts the advertising without
  squid going up but this is not a solution obviously. I've tried to check
  what could be wrong with the upstart script but there does not appear to
  be any good documentation or manual for upstart scripting... thus I have
  no clue why the script fails to start squid-deb-proxy-avahi... Here's
  how it looks:
  
- 
  description "squid-deb-proxy-avahi"
  
  start on (squid-deb-proxy and avahi-daemon)
  stop on stopping squid-deb-proxy
  
- # get it back with 
+ # get it back with
  #     avahi-browse -prt _apt_proxy._tcp
  script
-   PORT=$(grep http_port /etc/squid-deb-proxy/squid-deb-proxy.conf|cut -d' ' 
-f2)
-   if [ -n "$PORT" ] && [ -x /usr/bin/avahi-publish ]; then
-     exec avahi-publish -s "Squid deb proxy" _apt_proxy._tcp $PORT
-   fi
+   PORT=$(grep http_port /etc/squid-deb-proxy/squid-deb-proxy.conf|cut -d' ' 
-f2)
+   if [ -n "$PORT" ] && [ -x /usr/bin/avahi-publish ]; then
+     exec avahi-publish -s "Squid deb proxy" _apt_proxy._tcp $PORT
+   fi
  end script%

-- 
Avahi service for squid-deb-proxy does not start
https://bugs.launchpad.net/bugs/666014
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to