#!/sbin/runscript # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { : } PORT=${SVCNAME#*.} dev_var=DEV_${PORT} DEV=${!dev_var} args_var=ARGS_${PORT} ARGS=${!args_var} start() { ebegin "Starting kissattach for port ${PORT}" kissattach ${ARGS} ${DEV} ${PORT} eend $? } stop() { ebegin "Stopping kissattach for port ${PORT}" kill $( ps -o pid,args -C kissattach | grep ${PORT} | cut -c 1-5 ) eend $? }