#!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ checkconfig() { if [ ! -f /etc/pamauth-ng.conf ] ; then eerror "Could not find /etc/pamauth-ng.conf!" return 1 fi return 0 } start() { checkconfig || return $? ebegin "Starting uauthd" [ -s /var/run/uauthd.pid ] && return 1 /usr/sbin/uauthd& echo $! > /var/run/uauthd.pid eend $? "Failed to start uauthd" } stop() { local ret=1 ebegin "Stopping uauthd" if [ -s /var/run/uauthd.pid ]; then pid=$(