24 lines
649 B
Plaintext
Executable File
24 lines
649 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: $
|
|
|
|
start() {
|
|
ebegin "Starting utm5_radius"
|
|
export LD_LIBRARY_PATH="/netup/utm5/lib"
|
|
start-stop-daemon --start --quiet --background \
|
|
--make-pidfile --pidfile /run/safe_utm5_radius.pid \
|
|
--exec /netup/utm5/bin/safe_utm5_radius -- start
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping safe_utm5_radius"
|
|
start-stop-daemon --stop --quiet --signal 9 --pidfile /run/safe_utm5_radius.pid
|
|
eend $?
|
|
|
|
ebegin "Stopping utm5_radius"
|
|
start-stop-daemon --stop --quiet --signal USR1 --pidfile /run/utm5_radius.pid
|
|
eend $?
|
|
}
|