pinkbyte-overlay/net-misc/utm5/files/utm5_radius

24 lines
649 B
Plaintext
Raw Permalink Normal View History

#!/sbin/openrc-run
2013-12-25 10:22:08 +04:00
# Copyright 1999-2013 Gentoo Foundation
2011-10-28 17:13:27 +04:00
# Distributed under the terms of the GNU General Public License v2
# $Header: $
start() {
ebegin "Starting utm5_radius"
2013-12-25 10:22:08 +04:00
export LD_LIBRARY_PATH="/netup/utm5/lib"
start-stop-daemon --start --quiet --background \
--make-pidfile --pidfile /run/safe_utm5_radius.pid \
2013-12-25 10:22:08 +04:00
--exec /netup/utm5/bin/safe_utm5_radius -- start
2011-10-28 17:13:27 +04:00
eend $?
}
stop() {
ebegin "Stopping safe_utm5_radius"
start-stop-daemon --stop --quiet --signal 9 --pidfile /run/safe_utm5_radius.pid
eend $?
2011-10-28 17:13:27 +04:00
ebegin "Stopping utm5_radius"
start-stop-daemon --stop --quiet --signal USR1 --pidfile /run/utm5_radius.pid
2011-10-28 17:13:27 +04:00
eend $?
}