#!/sbin/runscript # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ start() { if [ "${SCAMSOCK}" != "" ]; then ebegin "Starting back-scam daemon" start-stop-daemon --start --quiet --exec /usr/sbin/scam-back \ --pidfile /var/run/scam-back \ -- -p ${SCAMSOCK} -u scamback -D eend $? else eerror "Setup your socket type before starting scam-back." eend 1 fi } stop() { ebegin "Stopping back-scam daemon" start-stop-daemon --stop --quiet --exec /usr/sbin/scam-back eend $? }