#!/sbin/runscript # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ depend() { need net.lo } start() { ebegin "Starting n2hell" start-stop-daemon --start --background --make-pidfile \ --pidfile /var/run/n2hell.pid \ ${user:+--chuid ${user}} \ --exec /opt/bin/n2hell -- ${port:+-port=${port}} eend $? } stop() { ebegin "Stopping n2hell" start-stop-daemon --stop --pidfile /var/run/n2hell.pid eend $? }