#!/bin/bash PROGRAM=/usr/sbin/wwwoffled NEEDS="+network" RUNLEVEL=3 . /etc/init.d/smgl_init FUNCS="$FUNCS autodial online offline fetch config dump purge" required_executable /usr/bin/wwwoffle stop() { echo "Stopping $NAME..." wwwoffle -kill evaluate_retval } autodial() { echo "Setting $NAME in autodial mode..." wwwoffle -autodial evaluate_retval } online() { echo "Setting $NAME online..." wwwoffle -online evaluate_retval } offline() { echo "Setting $NAME offline..." wwwoffle -offline evaluate_retval } fetch() { echo "Fetching..." wwwoffle -fetch evaluate_retval } config() { echo "Telling $NAME to re-read configuration file..." wwwoffle -config evaluate_retval } dump() { echo "Telling $NAME to dump out configuration file..." wwwoffle -dump evaluate_retval } purge() { echo "Purging..." wwwoffle -purge evaluate_retval } status() { statusproc $PROGRAM wwwoffle -status evaluate_retval } .