#!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: checkconfig() { if [ ! -f /etc/lstat/config ]; then eerror "Configuration file /etc/lstat/config does not exists!" fi; } start() { checkconfig || return 1 ebegin "Starting lstatd" start-stop-daemon --start --quiet --exec /usr/sbin/lstatd >/dev/null 2>&1 && \ touch /var/lock/subsys/lstatd && pidof -x lstatd > ${PIDFILE} eend $? } stop() { ebegin "Stopping lstatd" start-stop-daemon --stop --quiet --pidfile ${PIDFILE} eend $? }