blob: 63ffe152cafbdd4ff8a3cf1b8ab448583e96cb6d [file] [log] [blame]
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
need net
}
check_config() {
if [[ ! -f /etc/siproxd.conf ]]; then
eerror "Please create /etc/siproxd.conf first!"
return 1
fi
return 0
}
start() {
check_config || return 1
ebegin "Starting siproxd"
start-stop-daemon --start --exec /usr/sbin/siproxd -- \
-p /var/run/siproxd/siproxd.pid -c /etc/siproxd.conf
eend $?
}
stop() {
ebegin "Stopping siproxd"
start-stop-daemon --stop --pidfile /var/run/siproxd/siproxd.pid
eend $?
}