2016-05-18 11:44:22 +03:00
|
|
|
#!/sbin/openrc-run
|
2012-02-06 16:39:49 +04:00
|
|
|
# Copyright 1999-2004 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
depend() {
|
|
|
|
need net
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
|
|
|
ebegin "Starting pound"
|
|
|
|
if [ ! -f "/etc/pound.cfg" ]; then
|
|
|
|
eend 1 "configfile /etc/pound.cfg not found."
|
|
|
|
fi
|
|
|
|
start-stop-daemon --quiet --start --exec /usr/sbin/pound -- -f /etc/pound.cfg -p /var/run/pound.pid
|
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ebegin "Stopping pound"
|
|
|
|
start-stop-daemon --quiet --stop --pidfile /var/run/pound.pid
|
|
|
|
eend $?
|
|
|
|
}
|