telephony/net/yate/files/yate.init
Jiri Slachta 743bca6d7c This patch updates yate to version 5.0.0.
Tested-by: Robert Högberg <robert.hogberg@gmail.com>
Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
[slachta@cesnet.cz: removed zaptel stuff because of zaptel package breakage]
[slachta@cesnet.cz: added more configure options]
Tested-by: Jiri Slachta <slachta@cesnet.cz>
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
2013-11-05 16:11:51 +01:00

25 lines
402 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2013 OpenWrt.org
START=50
SERVICE_USE_PID=1
YATE_BINARY="/usr/bin/yate"
YATE_LOG_FILE=""
YATE_OPTIONS="-d -s -p /var/run/yate.pid"
start() {
if [ -n "$YATE_LOG_FILE" ]; then
YATE_OPTIONS="$YATE_OPTIONS -r -l $YATE_LOG_FILE"
fi
service_start $YATE_BINARY $YATE_OPTIONS
}
stop() {
service_stop $YATE_BINARY
}
reload() {
service_reload $YATE_BINARY
}