diff options
Diffstat (limited to 'net-voip/yate/files/yate.rc6')
-rwxr-xr-x | net-voip/yate/files/yate.rc6 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-voip/yate/files/yate.rc6 b/net-voip/yate/files/yate.rc6 new file mode 100755 index 000000000000..da9a925fbe0f --- /dev/null +++ b/net-voip/yate/files/yate.rc6 @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-voip/yate/files/yate.rc6,v 1.1 2006/10/18 19:57:28 genstef Exp $ + +depend() { + need net +} + +start() { + ebegin "Starting YATE" + start-stop-daemon --start --exec /usr/bin/yate -- -d -p /var/run/yate.pid ${OPTS} + eend $? +} + +stop() { + ebegin "Stopping YATE" + start-stop-daemon --stop --pidfile=/var/run/yate.pid + eend $? +} |