2016-12-06 18:00:41 +03:00
|
|
|
#!/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 \
|
2014-01-27 17:38:38 +04:00
|
|
|
--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() {
|
2014-01-27 17:38:38 +04:00
|
|
|
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"
|
2014-01-27 17:38:38 +04:00
|
|
|
start-stop-daemon --stop --quiet --signal USR1 --pidfile /run/utm5_radius.pid
|
2011-10-28 17:13:27 +04:00
|
|
|
eend $?
|
|
|
|
}
|