File ip-up.wwwoffle of Package wwwoffle

#!/bin/bash
#
# file for bringing up wwwoffle when network is back
# thanks to Martin Jost
# enhanced by Klaus Singvogel <kssingvo@suse.de>

# check if wwwoffle exists (is installed) and if it is configured to run
if [ -x /usr/bin/wwwoffle ] && /sbin/chkconfig -c wwwoffle ; then

   # Set the WWWOFFLE HTTP proxy server online.
   # it checks for new DNS
   /usr/bin/wwwoffle -online -c /etc/wwwoffle/wwwoffle.conf

   # Get the WWWOFFLE HTTP proxy server to fetch requested URLs.
   /usr/bin/wwwoffle -fetch -c /etc/wwwoffle/wwwoffle.conf &
fi
openSUSE Build Service is sponsored by