summaryrefslogtreecommitdiff
blob: edeff0fe8add5f79c7c60aedad2e6234cfd55f77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/openrc-run
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

depend() {
    need net
}

start() {
    ebegin "Starting YATE"
    start-stop-daemon --start --exec /usr/bin/yate -- -d -p /var/run/yate.pid ${YATE_OPTS}
    eend $?
}

stop() {
    ebegin "Stopping YATE"
    start-stop-daemon --stop --pidfile=/var/run/yate.pid
    eend $?
}